first commit

This commit is contained in:
LinlyBoi
2021-11-06 23:35:03 +02:00
commit 63ba32bb3c
27 changed files with 498 additions and 0 deletions

29
filereader.java Normal file
View File

@@ -0,0 +1,29 @@
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();
}
}
}