If you are using .NET 4.0, try MemoryMappedFile which is a designed class for this scenario.
You can use StreamReader.ReadLine
otherwise.
More Related Contents:
- Reading large text files with streams in C#
- How to find and replace text in a file
- An elegant way to consume (all bytes of a) BinaryReader?
- Adding a Line to the Middle of a File with .NET
- What is the purpose of “return await” in C#?
- When & why to use delegates? [duplicate]
- What are the true benefits of ExpandoObject?
- How do I get the computer name in .NET
- How to print the current Stack Trace in .NET without any exception?
- How can I customize the system menu of a Windows Form?
- Get the index of the nth occurrence of a string?
- Custom numeric format string to always display the sign
- Use XML includes or config references in app.config to include other config files’ settings
- AutoMapper vs ValueInjecter [closed]
- What is the best way to lock cache in asp.net?
- Differences between ExpandoObject, DynamicObject and dynamic
- How to get csc.exe path?
- Asmx web service how to return JSON and not XML?
- How to check that a uri string is valid
- Convert String to Date in .NET if my incoming date format is in YYYYMMDD
- How do I implement a progress bar in C#?
- Why is modulus operator not working for double in c#?
- General advice and guidelines on how to properly override object.GetHashCode()
- Assembly binding redirect does not work
- How do I determine the HResult for a System.IO.IOException?
- How do I compute the non-client window size in WPF?
- Consume a SOAP web service without relying on the app.config
- .net Framework Error (HRESULT 0x8007000B)
- What’s the purpose of GC.SuppressFinalize(this) in Dispose() method?
- Use convolution to find a reference audio sample in a continuous stream of sound