System.IO.IsolatedStorage.IsolatedStorageFile.OpenFile C# (CSharp) Method

OpenFile() public method

public OpenFile ( string path, FileMode mode ) : IsolatedStorageFileStream
path string
mode FileMode
return IsolatedStorageFileStream
        public IsolatedStorageFileStream OpenFile(string path, FileMode mode)
        {
            EnsureStoreIsValid();
            return new IsolatedStorageFileStream(path, mode, this);
        }

Same methods

IsolatedStorageFile::OpenFile ( string path, FileMode mode, FileAccess access ) : IsolatedStorageFileStream
IsolatedStorageFile::OpenFile ( string path, FileMode mode, FileAccess access, FileShare share ) : IsolatedStorageFileStream
IsolatedStorageFile::OpenFile ( string path, System mode ) : System.IO.IsolatedStorage.IsolatedStorageFileStream
IsolatedStorageFile::OpenFile ( string path, System mode, System access ) : System.IO.IsolatedStorage.IsolatedStorageFileStream
IsolatedStorageFile::OpenFile ( string path, System mode, System access, System share ) : System.IO.IsolatedStorage.IsolatedStorageFileStream

Usage Example

Esempio n. 1
0
 public IsolatedStorageTracer()
 {
     _storageFile = IsolatedStorageFile.GetUserStoreForApplication();
     _storageFileStream = _storageFile.OpenFile("MagellanTrace.log", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite);
     _streamWriter = new StreamWriter(_storageFileStream);
     _streamWriter.AutoFlush = true;
 }
All Usage Examples Of System.IO.IsolatedStorage.IsolatedStorageFile::OpenFile