import java.io.FileInputStream;
import java.util.Scanner;
import java.io.File;
class FileTest1
{
public static void main(String Dx[])
{
FileInputStream fin;
try{
Scanner scanner = new Scanner(new File("abc.txt"));
while (scanner.hasNext()) {
String line = scanner.next();
String cells[] = line.split(" ");
System.out.println(line);}
System.out.println("Operation is successfully Compleated");
}
catch(Exception e)
{System.out.println(e);}
}
}
No comments:
Post a Comment