Which are NOT acceptable ways to open a file for writing?

 Posted by Raja on 9/28/2008 | Category: C# Interview questions | Views: 24063
Select from following answers:
  1. File.Open("somefile.txt", FileMode.Create);
  2. File.Open("somefile.txt", FileMode.Create, FileAccess.Write);
  3. File.Open("somefile.txt", FileMode.Create, FileAccess.Read);
  4. FileInfo file = new FileInfo("somefile.txt"); <br />file.Open(FileMode.Create);
  5. All Above

Show Correct Answer


Source: MCTS Book | | Alert Moderator 

Comments or Responses

Login to post response