TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dpasswat
NA
2
0
C# compact framework: problem reading a text file
Jan 5 2005 1:10 PM
I'm having trouble reading a text file from my PDA. I can create the directory and write to it just fine; but when I try to read it, I get a file not found error. Here's my code: string directory = "\\My Documents\\UploadAmmoCards\\AC001897799\\AC001897799.txt"; // Open file. StreamReader fRead = new StreamReader(directory); // Read file and store it in FileBuff array. while (fRead.Peek() >= 0) { char newChar = (char) fRead.Read(); } fRead.Close(); Thanks in advance for any and all help. Daniel
Reply
Answers (
0
)
Updating Database from Dataset Datatable
Voice & Smart device application