import java.io.*;
class D
{
public static void main(String[] args){
try
{
FileReader f= new FileReader("C:\\Users\\HP\\Desktop\\LC.txt");
try
{
int i;
while((i=f.read())!=0)
{
System.out.println((char)i);
}
}
finally
{
f.close();
}
}
catch(Exception a)
{
System.out.println("some error");
}
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter