public String readSystemStat(){
  RandomAccessFile reader=null;
  String load=null;
  try {
    reader=new RandomAccessFile("/proc/stat","r");
    load=reader.readLine();
  }
 catch (  IOException ex) {
    ex.printStackTrace();
  }
 finally {
  }
  return load;
}

public String readSystemStat ( ) { RandomAccessFile reader = null ; String load = null ; try { reader = new RandomAccessFile ( "/proc/stat" , "r" ) ; load = reader . readLine ( ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } finally { } return load ; }
return the first line of / proc / stat or null if failed .
