TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Michael
NA
40
0
StreamWriter Wont Write
Jan 13 2007 8:55 PM
i've got a simple save rountine for a program yet it doesn't work any ideas why not?
1st version
private void SaveConfig(){
StreamWriter write = File.CreateText(filename);
write.WriteLine(dir);
write.WriteLine(textBox1.Text);
write.Flush();
write.Close();
}
file output
C:\
2nd version
private void SaveConfig(){
StreamWriter write = File.CreateText(filename);
write.WriteLine(dir);
string tmp = textBox1.Text;
Console.WriteLine(dir);
Console.WriteLine(tmp);
write.WriteLine(tmp);
write.WriteLine(textBox1.Text);
write.Flush();
write.Close();
}
console output
C:\
-w 1280 -h 768
file output
C:\
Reply
Answers (
0
)
Install 2 projects same menu item
data retrive from database