Question: Using Java file I/O to perform the following: a) Write a byte array to a .txt file after the first line of text in the
Using Java file I/O to perform the following: a) Write a byte array to a .txt file after the first line of text in the file b) Read an integer, double and character objects from a file. c) Calculate the number of spaces in a file. d) Considering that a file contains multiple records (rows), each row having fields name, rollNo and marks, calculate the average of the marks in all the records.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
