Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

List string to file C#

string[] lines = { "First line", "Second line", "Third line" };
System.IO.File.WriteAllLines(@"C:UsersPublicTestFolderWriteLines.txt", lines);
lines = { "Fourth line", "Fith line" };
System.IO.File.AppendAllLines(@"C:UsersPublicTestFolderWriteLines.txt", lines);
Comment

PREVIOUS NEXT
Code Example
Csharp :: httpclient soap request c# 
Csharp :: unity topdown movement 
Csharp :: untiy instanciate prefab 
Csharp :: unity transparent object 
Csharp :: mute sound unity 
Csharp :: how to redirect to extern page in .net core 
Csharp :: c# check if string is all numbers 
Csharp :: C# get key by value Dict 
Csharp :: c# double to string with dot 
Csharp :: c# if statement one line 
Csharp :: c# indexof 
Csharp :: c# find element by condition 
Csharp :: .net framework get configuration value from web.config 
Csharp :: how to instantiate a gameobject 
Csharp :: add dependency injection .net core console app 
Csharp :: disable rigidbody unity 
Csharp :: how to do a messagebox in c# 
Csharp :: switch case c# 
Csharp :: c# remove items from one list that are in another 
Csharp :: mapping dictionary to object c# 
Csharp :: save byte array to file c# 
Csharp :: c# calculator 
Csharp :: c# Get all class by namespace 
Csharp :: wpf app how to get all elements 
Csharp :: c# get country code 
Csharp :: c# OrderBy desc 
Csharp :: roman 
Csharp :: fluent assertions exception 
Csharp :: c# edit element in list 
Csharp :: 2d list c# 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =