.net Code Snippets
Saturday, October 31, 2009
How to write text to file in C#
using (StreamWriter sw = File.CreateText(@"C:\test.txt"))
{
sw.Write("Some text");
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2011
(1)
►
June
(1)
▼
2009
(5)
▼
October
(3)
Home of .net & C# (dot net, C#) code snippets, lea...
How to read text from file in C#
How to write text to file in C#
►
September
(1)
►
July
(1)
About Me
MyLearnings
View my complete profile
No comments:
Post a Comment