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("input.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) {
				if (!strLine.startsWith("#")) {
					String[] token = strLine.split(" ");
					writer.write(token[0] + " " + token[1] + " 1.0" + "\n");
				}
			}
			in.close();
			writer.flush();
			writer.close();
		} catch (Exception e) {
			System.err.println("Error: " + e.getMessage());
		}
	}
}

@@ -171,16 +171,167 @@
 eader;%0A%0A
+/*%0AConvert the standard tab-separated file into the format:%0Anode1 node2 cost%0Anode2 node3 cost%0A....%0A%5Bseparated by space%5D%0Anotice: default cost is 1.0%0A*/%0A
 public c
@@ -837,17 +837,17 @@
 .split(%22
- 
+%09
 %22);%0A%09%09%09%09

Update convert.java