|
-
June 14th, 2010, 08:37 AM
#5
Re: Print out array contents into a text file
Thanks!
Its actually a little easier this way i figured out:
string[] lines = {"each","word","is","a","different","line"};
File.WriteAllLines(@"c:\ttt.txt", lines, Encoding.Default);
you dont even need a foreach loop just "File.WriteAllLines" and then the name of the array
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|