Switching to Edit Mode on the ViewEdit Page and Saving Changes - Day 4 - Part 11

Sign in to queue

The Discussion

  • User profile image

    Hi bob,

    I noticed that you use two different ways of creating file:

    - appStorage.OpenFile(fileName, FileMode.Create)

    - appStorage.CreateFile(fileName)

    Any significant difference between the two?

  • User profile image

    @kctan: The 2nd one only creates a file.   OpenFile with FileMode.OpenOrCreate will either open it if it is there or will create a new file for you.  Just makes your code a lot cleaner.

Add Your 2 Cents