Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# read file from path

string path = "C:UsersPublicTestFolderWriteText.txt";
// Read as a single string
string text = System.IO.File.ReadAllText(path);
// Read each line into a string array
string[] lines = System.IO.File.ReadAllLines(path);
 
PREVIOUS NEXT
Tagged: #read #file #path
ADD COMMENT
Topic
Name
6+8 =