Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey !
i am student of EE in my final semester now. I have been working on a project that requires C# Stream Writing and reading utility.

My question is during debugging it saves the file in the default debug/bin folder, however when i publish my project i cannot find where the program saves the file ...

Any help would be appreciated...
=)
Posted

It depends on the version of windows you're using. In XP it's under documents and settigns, and under Vista/Win7 it's under ProgramData or users/userID/Roaming/ApplicationData.

In any case, the folder you're looking for is hidden, so you've have to use Windows Explorer to show hidden folders, and then you can see them.
 
Share this answer
 
You need to manage your information. Either use the specialfolder(UserData) or one of the other specialfolders as these will be consistent across (recent) windows platforms or use the executable path to locate the default folder.

Relying on the default is lazy and prone to security problems, you should be managing your IO properly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900