0

hi...now i want to save my output in one text file. My output is arrange in vertically then i save the output in text file. However, when i check that text file, my output is all arrange in horizontal. How to change it to vertical form?? Hope someone can help?

3
Contributors
7
Replies
8
Views
6 Years
Discussion Span
Last Post by Momerath
0

I display them in list box but the result same as the text file that is in horizontal..I need them in vertical form in text file and list box.

Edited by Kath_Fish: n/a

0
FileStream fs = new FileStream(@"C:\Users\Fish\Desktop\fyp-coding\sample1.txt", FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite);//create text file 
            StreamWriter sw = new StreamWriter(fs, Encoding.Default);

            sw.WriteLine(ShowResult.ToString().Trim());// write to the text file         

            sw.Flush();
            sw.Close();
            fs.Close();

this is the write text file codes...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.