All pastes #26656 Raw Edit

Someone

public text v1 · immutable
#26656 ·published 2005-10-25 21:29 UTC
rendered paste body
import java.io.*;
public class IOLoop2
{
	public static BufferedReader inFile;
	public static PrintWriter outFile;
	
	public static void main (String [] args) throws IOException
	{
		int lineCount = 0;
		String tab = "     ";
		int index;
		int inLine;
		String inputString = "";
		inFile = new BufferedReader (new FileReader ("history.dl"));
		outFile = new PrintWriter (new FileWriter ("data.dl"));
		
		while (inputString != null)
		{
			
			if (inputString.length() < 1)
				{
				inputString = inFile.readLine();
				inputString = tab+inputString;
				outFile.println(inputString);
				}
			else;
				inputString =inFile.readLine();
			   outFile.println (inputString);
		}	
		
	}
}