Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Problems with File Access.....
Glenn Patton
12y
1.2k
1
Reply
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
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
memory out of exception occurs (Find method) - dealing with 100 MB file
Response.redirect in C#