Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# stringbuilder to file

using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"hereIam.txt"))
{
    file.WriteLine(sb.ToString()); // "sb" is the StringBuilder
}
Comment

c# stringbuilder to file

System.IO.File.WriteAllText(@"C:TextFile.txt", stringBuilder.ToString());
Comment

PREVIOUS NEXT
Code Example
Csharp :: exit programm c# 
Csharp :: stop flickering 
Csharp :: How to read a XML on C# 
Csharp :: random seed in c# 
Csharp :: how to check if a value is inside an array c# 
Csharp :: c# @ before string 
Csharp :: c# console beep sounds 
Csharp :: c# return list 
Csharp :: Editor log location unity 
Csharp :: unity hide in inspector 
Csharp :: c# datagridview change column name 
Csharp :: ession in class c# 
Csharp :: access a local varible in a different function C# 
Csharp :: bootstrap modal popup 
Csharp :: unity controls 3d 
Csharp :: invert string c# 
Csharp :: deltatime 
Csharp :: how to make an object invisible unity 
Csharp :: unity random range 
Csharp :: c# compile into an exe 
Csharp :: c# difference between two dates in milliseconds C# 
Csharp :: Unity c#loading a scene after a few seconds 
Csharp :: c# create a zip files 
Csharp :: c# datagridview search filter 
Csharp :: c# remove special characters from string 
Csharp :: destroy game object 
Csharp :: c# first item i list 
Csharp :: how to do time.deltatime in c# 
Csharp :: c# unity get name of object 
Csharp :: c# list string return concatenate 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =