Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# read only file used by other app

using(FileStream logFileStream = new FileStream(@"c:	est.txt", FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
    using(StreamReader logFileReader = new StreamReader(logFileStream))
    {
        string text = logFileReader.ReadToEnd();
        // Your code..
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: enum extends dictionary c# 
Csharp :: how to count specific controls in a container c# 
Csharp :: C# how to stop user type into combobox 
Csharp :: set data annotation in model c# 
Csharp :: C# sprint key 
Csharp :: ExpandoObject Make Objects Extensible 
Csharp :: assign a list to another in c# without a loop 
Csharp :: c# dictionary contain key but returns false 
Csharp :: mac osx enable hidpi terminal 
Csharp :: c# execute run control panel 
Csharp :: c# webbrowser control append 
Csharp :: c sharp while statement 
Csharp :: unity predicts rigidbody position in x seconds 
Csharp :: how to if i enter 1 go to this program C# 
Csharp :: c# dubble comment 
Csharp :: Smooth Sentences c# 
Csharp :: c# operators 
Csharp :: c# hashset 
Csharp :: c# datagridview count value 
Csharp :: c# loop array back 
Csharp :: c# write line variable 
Csharp :: millie bobby brown age 
Csharp :: .Net 6 Program.cs 
Csharp :: read administrator account remote machine C# 
Csharp :: laravel get current url 
Html :: htaccess remove .html 
Html :: how to make a whatsapp hyperlink html 
Html :: divi font awesome 
Html :: space character in react html 
Html :: add favicon html 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =