public static void main(String[] args) {
		try {
		
			String f1 = "/home/mayank/DistributedSystems/test1.txt";
			File file1 = new File(f1);
			FilePartition fp1 = new FilePartition(f1, 13, file1.length());
			
			TextRecordReader reader = new TextRecordReader(fp1, null);
			Record<String, String> record;
			while( (record = reader.readNextRecord()) != null ) {
				System.out.println(record.getKey() + ":" + record.getValue());
			}
			
			String f2 = "/home/mayank/DistributedSystems/test1.txt";
			File file2 = new File(f2);
			FilePartition fp2 = new FilePartition(f2, 0, 13);
			
			reader = new TextRecordReader(fp2, null);
			while( (record = reader.readNextRecord()) != null ) {
				System.out.println(record.getKey() + ":" + record.getValue());
			}
			
			String f3 = "/home/mayank/DistributedSystems/test1.txt";
			File file3 = new File(f3);
			FilePartition fp3 = new FilePartition(f3, 14, file3.length());
			
			reader = new TextRecordReader(fp3, null);
			while( (record = reader.readNextRecord()) != null ) {
				System.out.println(record.getKey() + ":" + record.getValue());
			}
		
			String f4 = "/home/mayank/DistributedSystems/test2.txt";
			File file4 = new File(f4);
			FilePartition fp4 = new FilePartition(f4, 0, file4.length());
			
			reader = new TextRecordReader(fp4, "\t");
			while( (record = reader.readNextRecord()) != null ) {
				System.out.println(record.getKey() + ":" + record.getValue());
			}
		
		} catch (Exception e) {
			e.printStackTrace();
		}
	}