30 lines
461 B
Java
30 lines
461 B
Java
import java.io.FileReader;
|
|
import java.io.IOException;
|
|
import java.io.FileNotFoundException;
|
|
class Scratch
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
try
|
|
{
|
|
FileReader reader = new FileReader("art.txt");
|
|
int data = reader.read();
|
|
while(data != -1)
|
|
{
|
|
System.out.print((char)data);
|
|
data = reader.read();
|
|
}
|
|
reader.close();
|
|
|
|
}
|
|
catch(FileNotFoundException e)
|
|
{
|
|
e.printStackTrace();
|
|
}
|
|
catch(IOException e) {
|
|
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|