Consider this when using CreateNew flag:
"Specifies that the operating system should create a new file. This requires FileIOPermissionAccess..::.Write. If the file already exists, an IOException is thrown."
so u better use OpenOrCreate, or if u wish to always create new file, delete it first then use CreateNew flag.
another thing is write permissions, make sure u have write permissions and the file is not read only.