Question: 4) File information is given as File x= new File (scores.txt); Which of the following statement is used for writing data to scores.txt? a) Scanner

4) File information is given as File x= new File ("scores.txt"); Which of the following statement is used for writing data to "scores.txt"? a) Scanner kb= new Scanner("scores.txt"); b) Scanner kb= new Scanner (x); c) PrintWriter output = new PrintWriter("scores.txt" ); d) PrintWriter output= new PrintWriter(x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
