import java.io.File;
public static void main(String[] args)
{
FileControl fFiles = new FileControl();
while()
{
String sLines = fFiles.GetValue();
System.out.println(sLines);
}
}
public class FileControl()
{
File yourTestFile;
public FileControl()
{
/* open your testing file
yourTestFile = new File(/*your file's name*/);
}
protected String GetValue()
{
/* read one line */
return yourTestFile.readLine();
}
protected void close()
{
try{
yourTestFile.close();
}catch(Excepiton a){}
}
}
public static void main(String[] args)
{
FileControl fFiles = new FileControl();
while()
{
String sLines = fFiles.GetValue();
System.out.println(sLines);
}
}
public class FileControl()
{
File yourTestFile;
public FileControl()
{
/* open your testing file
yourTestFile = new File(/*your file's name*/);
}
protected String GetValue()
{
/* read one line */
return yourTestFile.readLine();
}
protected void close()
{
try{
yourTestFile.close();
}catch(Excepiton a){}
}
}