In this we will going to cover following concepts present in java.io package:
1)File
2)FileWriter
3)FileReader
4)BufferedWriter
5)BufferedReader
6)PrintWriter
Class 1:
For storing large data we use databases but for storing small amounts of data we use files.
Class 2:
Class3:
Class 4:
Class 7:
- File readers read data character by character, so we use buffer reader.
- In First program, we are creating char array of int range, if number of characters in a file is more than int range better to avoid read(char []) and go for read(char ch) (Any way we are not going to use these in programs, we use only buffer readers and writers)
























0 Comments