public static ArrayList<Packet> extractPacketsInfo(String file){
		BufferedReader reader = null;
		ArrayList<String> linesList = new ArrayList<String>();
		ArrayList<Packet> packetList = new ArrayList<Packet>();
		
		try {
			reader = new BufferedReader(new FileReader(file));
			String line2 = reader.readLine();
			String[] parts2;
			int start2 = 0;
			float startTime2 = 0;
			while(line2 != null){
				if(start2 == 0){
					start2 = 1;
					linesList.add(line2);
					parts2 = linesList.get(0).split("\t");
					startTime2 = Float.valueOf(parts2[0]);
					packetList.add(new Packet(Float.valueOf(parts2[0])-startTime2,
							Integer.valueOf(parts2[1])));
					line2 = reader.readLine();
					continue;
				}
				linesList.add(line2);
				parts2 = line2.split("\t");
				packetList.add(new Packet(Float.valueOf(parts2[0])-startTime2,
						Integer.valueOf(parts2[1])));
				line2 = reader.readLine();
			} 
			reader.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return packetList;
	}