Professional Documents
Culture Documents
Lecture 5
…
Text file :
– the bits represent printable characters
– Has BufferedReader and FileReader Input classes
– Has PrintWriter, FileOutputSteam, and FileWriter Output classes
Binary file :
– byte format data which is used by computer
– Has FileInputStream and DataInputStream input classes and
– Has FileOutputStream and DataOutputStream output classes
01/29/2023 interpreted by : Asaminew G. 6
Text file classes
…
Output classes
Input classes
01/29/2023 interpreted by : Asaminew G. 7
Binary file classes
…
Output classes
Input classes
01/29/2023 interpreted by : Asaminew G. 8
Reading and Writing Text Files
…
Step 2
…
…
…
Write String
Write Integer
Write Double
01/29/2023 interpreted by : Asaminew G. 17
Reading Binary Data
…
read string
read integer
read double