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");

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!