package processor;

import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStreamReader;

public class TSVprocessor {
	public static void main(String args[]) {
		try {
			File file = new File("output.txt");
			file.createNewFile();
			FileWriter writer = new FileWriter(file);
			FileInputStream fstream = new FileInputStream(args[0]);
			DataInputStream in = new DataInputStream(fstream);
			BufferedReader br = new BufferedReader(new InputStreamReader(in));
			String strLine = null;
			while ((strLine = br.readLine()) != null) {
				String[] token = strLine.split(" ");
				writer.write(token[0] + "\t" + token[1] + "\n");
			}
			in.close();
			writer.flush();
			writer.close();
		} catch (Exception e) {
			System.err.println("Error: " + e.getMessage());
		}
	}
}

@@ -191,16 +191,276 @@
 eader;%0A%0A
+/*%0AThis class accept the file in the following format:%0Aeg: a b (split by space)%0A    c d %0A    e f%0A    g h%0AThe goal is to change the file into the tab separated format:%0Aeg: a%09b (split by tab)%0A    c%09d%0A    e%09f%0A    g%09h%0AIt will ignore any line that starts with #%0A*/%0A
 public c
@@ -894,16 +894,53 @@
 null) %7B%0A
+%09%09%09%09if (!strLine.startsWith(%22#%22)) %7B%0A%09
 %09%09%09%09Stri
@@ -972,16 +972,17 @@
 t(%22 %22);%0A
+%09
 %09%09%09%09writ
@@ -1026,16 +1026,22 @@
  %22%5Cn%22);%0A
+%09%09%09%09%7D%0A
 %09%09%09%7D%0A%09%09%09

Update TSVprocessor.java