Datasets:
ArXiv:
License:
Stack-Repo
/
data
/train
/akash-coded
/FSD_Java
/Lesson-3
/File Handling
/Examples
/FileInputStreamExample1.java
| import java.io.*; | |
| public class FileInputStreamExample1 { | |
| public static void main(String[] args) { | |
| try (FileInputStream fin = new FileInputStream("testout1.txt")) { | |
| char ch = (char) fin.read(); | |
| System.out.print(ch); | |
| } catch (Exception e) { | |
| System.out.println(e); | |
| } | |
| } | |
| } | |