rendered paste bodyimport 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);
}
}
}