import java.util.*;
import java.lang.*;
import java.io.*;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
try{
FileReader f=new FileReader("File.txt");
int data;
while((data=f.read())!=-1){
System.out.println((char)data);
}
f.close();
}
catch(IOException e){
System.out.println(e.getMessage());
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: