|
-
November 13th, 2012, 08:18 AM
#2
Re: File reading hlep
Ok I have read each file into an array and now I want to read the file back out of the array one line at a time. Can
anybody point me on how to do this?
I'm looping through the array with a foreach, the code below just prints out the whole file that is stored in the array
to the textbox2. I can't really seem to find any code that works for reading the array item on line at a time, any help
would be great!
Code:
foreach (string s in fileNames)
{
textBox2.Text += File.ReadAllText(s) + fileNames.Length;
}
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
|