![]() |
C# Streams and Installer Question
Hi All
I knew there was a similar post about this subject a while back, but I would like to know if anyone can help me with this... I have written a program in MS Visual C# 2005 Express. The application basically capture user information typed in, (provision made for exception handling), then updates the files with streams(which saves the file with ".FILE" extension in default directory. It can also save as a text file, but anyway... How can I go about changing the location where the .FILE files gets saved to?:-/ Here is my source code of the relevant piece. :
private void btnSave_Click(object sender, EventArgs e)Where :
rtbSaveName.TextI would also just like to know if anyone knows ao any links to help me set up an installer for my application as I just know of MS Visual C#'s Publish function. All help will be, as allways, much appreciated. |
Re: C# Streams and Installer Question
Specify a path:
:
StreamWriter stmWrite = new StreamWriter(@"C:\Path\To\Directory\" + rtbSaveName.Text); |
Re: C# Streams and Installer Question
Excellent stuff!
Thanks man, just couldn't figure it out you know. Much Appreciated, finally I can add some level of controll to the app. >BstrucT< |
| All times are GMT -5. The time now is 4:13 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC