¡@

Home 

c# Programming Glossary: filemode.open

check if unmanaged dll is 32-bit or 64-bit?

http://stackoverflow.com/questions/1001404/check-if-unmanaged-dll-is-32-bit-or-64-bit

above for enum FileStream fs new FileStream dllPath FileMode.Open FileAccess.Read BinaryReader br new BinaryReader fs fs.Seek..

What is AsyncCallback?

http://stackoverflow.com/questions/1047662/what-is-asynccallback

mfc71.pdb FileStream strm new FileStream filename FileMode.Open FileAccess.Read FileShare.Read 1024 FileOptions.Asynchronous..

XML Serialize generic list of serializable objects

http://stackoverflow.com/questions/1212742/xml-serialize-generic-list-of-serializable-objects

null Deserialize fs new FileStream Personenliste.xml FileMode.Open personen PersonalList serializer.Deserialize fs serializer.Serialize..

A C# equivalent of C's fread file i/o

http://stackoverflow.com/questions/1935851/a-c-sharp-equivalent-of-cs-fread-file-i-o

Sample using var stream new FileStream @ c temp test.bin FileMode.Open FileAccess.Read while stream.Position stream.Length data.Add..

How can I determine for which platform an executable is compiled?

http://stackoverflow.com/questions/197951/how-can-i-determine-for-which-platform-an-executable-is-compiled

data new byte 4096 using Stream s new FileStream fileName FileMode.Open FileAccess.Read s.Read data 0 4096 dos header is 64 bytes last..

Possible to calculate MD5 (or other) hash with buffered reads?

http://stackoverflow.com/questions/2124468/possible-to-calculate-md5-or-other-hash-with-buffered-reads

FileStream fs new FileStream file FileMode.Open FileAccess.Read byte hash ha.ComputeHash fs fs.Close return..

Reading large text files with streams in C#

http://stackoverflow.com/questions/2161895/reading-large-text-files-with-streams-in-c-sharp

like this using FileStream fs File.Open path FileMode.Open FileAccess.Read FileShare.ReadWrite using BufferedStream bs..

How can I write fast colored output to Console?

http://stackoverflow.com/questions/2754518/how-can-i-write-fast-colored-output-to-console

h CreateFile CONOUT 0x40000000 2 IntPtr.Zero FileMode.Open 0 IntPtr.Zero if h.IsInvalid CharInfo buf new CharInfo 80 25..

How do you read a file which is in use?

http://stackoverflow.com/questions/3709104/how-do-you-read-a-file-which-is-in-use

question using FileStream stream File.Open path to file FileMode.Open FileAccess.Read FileShare.ReadWrite using StreamReader reader..

Get last 10 lines of very large text file > 10GB c#

http://stackoverflow.com/questions/398378/get-last-10-lines-of-very-large-text-file-10gb-c-sharp

tokenSeparator using FileStream fs new FileStream path FileMode.Open Int64 tokenCount 0 Int64 endPosition fs.Length sizeOfChar for..

How to detect the character encoding of a text file?

http://stackoverflow.com/questions/4520184/how-to-detect-the-character-encoding-of-a-text-file

buffer new byte 5 FileStream file new FileStream srcFile FileMode.Open file.Read buffer 0 5 file.Close if buffer 0 0xef buffer 1 0xbb..

Serialize Class containing Dictionary member

http://stackoverflow.com/questions/495647/serialize-class-containing-dictionary-member

String filename using var filestream File.Open filename FileMode.OpenOrCreate FileAccess.ReadWrite try var serializer new XmlSerializer.. string filename using var filestream File.Open filename FileMode.Open FileAccess.Read try var serializer new XmlSerializer typeof..

Using the using statment in c# [duplicate]

http://stackoverflow.com/questions/614959/using-the-using-statment-in-c-sharp

this context using FileStream fs new FileStream file FileMode.Open do stuff Alternatively you could just use FileStream fs try..

Generate a PDF that automatically prints

http://stackoverflow.com/questions/6167995/generate-a-pdf-that-automatically-prints

file1 new System.IO.FileStream test_input.pdf FileMode.Open FileAccess.Read FileShare.Read IacDocument document new IacDocument..

open file in exclusive mode in C#

http://stackoverflow.com/questions/685135/open-file-in-exclusive-mode-in-c-sharp

args using Stream iStream File.Open c software code.txt FileMode.Open FileAccess.Read FileShare.None Console.WriteLine I am here.. running. Run this app twice to see. File.Open test.txt FileMode.Open FileAccess.Read FileShare.None Console.ReadKey share improve..

File access error with FileSystemWatcher when multiple files are added to a directory

http://stackoverflow.com/questions/699538/file-access-error-with-filesystemwatcher-when-multiple-files-are-added-to-a-dire

null try using FileStream fs new FileStream e.FullPath FileMode.Open FileAccess.Read FileShare.None using StreamReader sr new StreamReader.. try using Stream stream System.IO.File.Open fileName FileMode.Open FileAccess.ReadWrite FileShare.ReadWrite if stream null ..

Save and load MemoryStream to/from a file

http://stackoverflow.com/questions/8624071/save-and-load-memorystream-to-from-a-file

MemoryStream using FileStream file new FileStream file.bin FileMode.Open FileAccess.Read byte bytes new byte file.Length file.Read bytes..

Is there a way to check if a file is in use?

http://stackoverflow.com/questions/876473/is-there-a-way-to-check-if-a-file-is-in-use

FileInfo file FileStream stream null try stream file.Open FileMode.Open FileAccess.ReadWrite FileShare.None catch IOException the file..