Solved

Your Program Wishes to Open a File Named C:\java\myProg\input

Question 66

Multiple Choice

Your program wishes to open a file named C:\java\myProg\input.txt on a Windows system.Which of the following is the correct code to do this?


A) inputFile = new File("c:\java\myProg\input.txt") ;
B) inputFile = new File.open("c:\\java\\myProg\\input.txt") ;
C) inputFile = new File("c:\\java\\myProg\\input.txt") ;
D) inputFile = new File.open("c:\java\myProg\input.txt") ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions