Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

read text file to string c#

string mystring = System.IO.File.ReadAllText(@"C:UsersPublicTestFolderWriteText.txt");
Comment

c# read file into a string

string mystring = File.ReadAllText(your_file_location, Encoding.UTF8);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# print hello world 
Csharp :: unity foreach child 
Csharp :: split on uppercase c# 
Csharp :: c# sleep 
Csharp :: how to get a list of processes c# 
Csharp :: unity how to see what scen you are in 
Csharp :: center an image horizontally and vertically 
Csharp :: unity how to refrsh scene 
Csharp :: unity gameobject teleporting 
Csharp :: open url in c# 
Csharp :: C# get pc language 
Csharp :: unity ray from mouse position 
Csharp :: unity reload scene 
Csharp :: c# player movement 
Csharp :: get max enum value c# 
Csharp :: asp.net data annotations Datetime 
Csharp :: linux command line exit with error message 
Csharp :: usermanager change password without current password 
Csharp :: unity wait for seconds 
Csharp :: unity or 
Csharp :: unity c# get bool from another script 
Csharp :: how to find the mouse position unity 
Csharp :: how to exit application c# console 
Csharp :: get random number c# 
Csharp :: c# right click event 
Csharp :: c# get project directory 
Csharp :: c# round to 2 decimal places 
Csharp :: get type of exception c# 
Csharp :: c# system.drawing.color to system.windows.media.color 
Csharp :: wpf load file content 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =