2
Answers

Problems with File Access.....

Glenn Patton

Glenn Patton

12y
1.2k
1
Hi All,

I am having an issue using C# to read or write a simple file.  The issue has cropped up as for a new project a directory structure is required, this structure is created by the installer. I have noticed when I run the installer from the debug mode it creates a Windows shortcut to the C: drive, but does create the struct needed ( C:\Data\BAK) the short cut appears in the Data directory.
My main issue how ever is that the directory(s) can't be seen or the file can't be read to
I have followed the steps in the below tutorial and tried means I have used in the past   to write CSVs. 
http://www.c-sharpcorner.com/uploadfile/mahesh/how-to-read-a-text-file-in-C-Sharp/

T
he error appears to be it can't see the file but if I manually create it the debugger says it can't be accessed very confused!

Glenn

Answers (2)