private Statistics readStatFromFile()
    {
	String fileName = new String();;

	List<ProcessStat> procStatList = new ArrayList<ProcessStat>();
	
	try{
	    // Open the file that is the first 
	    // command line parameter
	    FileInputStream fstream = new FileInputStream("statistics.txt");
	    // Get the object of DataInputStream
	    DataInputStream in = new DataInputStream(fstream);
	    BufferedReader br = new BufferedReader(new InputStreamReader(in));

	    char c;
	    while((c = (char)br.read()) == 'p')
		{
		    fileName = c + br.readLine(); //Get filename
		    List<Long> psCounters = new ArrayList<Long>();
		    List<Integer> psSizes = new ArrayList<Integer>();
		    List<Integer> psTimers = new ArrayList<Integer>();
		    
		    for(int i = 0; i < 8; i++)
			{
			    psCounters.add(Long.parseLong(br.readLine()));
			}

		    for(int i = 0; i < 5; i++)
			{
			    psSizes.add(Integer.parseInt(br.readLine()));
			}

		    for(int i = 0; i < 4; i++)
			{
			    psTimers.add(Integer.parseInt(br.readLine()));
			}

		    ProcessStat procData = new ProcessStat(fileName, psCounters, psSizes, psTimers);
		    procStatList.add(procData);
		}

	    //Close the input stream
	    in.close();
	}catch (Exception e){//Catch exception if any
	    System.err.println("Error: " + e.getMessage());
	}

	Statistics statData = new Statistics(procStatList);

	return statData;
    }