//WRITING
import java.io.FileWriter;
import java.io.PrintWriter;
//READING
import java.util.StringTokenizer;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
public class FileExTester {
public static void main( ) throws IOException
{
readFromFile( );
writeToFile("R. Harris" );
}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++READ FROM+FILE++++++
private static void readFromFile( ) throws IOException
{
File inF = new File("H:\\M359\\JAVA\\Files\\input.txt"); //File path access!
if(inF.exists())
{
FileReader reader = new FileReader(inF);
BufferedReader in = new BufferedReader(reader);
String inL; //Entire Line!
StringTokenizer token; //Individual word or number within the line
do //Ex will have 4 lines -> 1. Name
{ // 2. Tests
inL = in.readLine(); //Read Name. 3. Progs
System.out.println(inL); // Print Name. 4. Hk
for(int i = 1 ; i ");
out.close();
}
}