problem in wriitng to a file when getting file from Open file Dialog
Hi all,
I am using a listview and the items it have has a subitem "file name". For selelcting file name I have given a facility so that the user can select file from Open File dialog. There are some other subitems also. As soon as the user is done the application creates a text file storing all the information of the listview. If the user chooses a file in Open file Dialog which is in the debug folder i.e. which is located where the .exe is located everything works fine but if the user chooses any file which is not in the debug folder the application runs fine withpout any error but "it does not create the text file". So making long story short Why I am getting such an error which let me create the text file if I choose a file located in debug folder but not when I choose a file which is not in the debug folder.
Any suggestions? Please let me know.
Thanks
Tarun