All pastes #26667 Raw Edit

Anonymous

public text v1 · immutable
#26667 ·published 2005-10-25 22:03 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)
		{
			lineCount++;
			if (inputString.length() < 1)
				{
				inputString = inFile.readLine();
				System.out.print("     ");
				}
			else;
				inputString =inFile.readLine();
			   System.out.println (inputString);
		}	
		
	}
}