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
Richard Brennan
NA
114
85.4k
Using Files
Apr 6 2011 8:34 AM
Hi
Im totaly new to c#.
Q1: If i had a file like
Richard,Brennan
Jane,Smith
Paul,Grain
etc and a read each line 1 at a time, I assume that the whole line, 'Richard,Brennan' is read into the IO stream.
Whats the best way to get each name seperated into their own string?
(Right I have found split() and used it OK so ignore this one. Pls look at Q2.
Q2: How do i delete a specific line from a txt file?
And when i close the IO stream - does it save it and remove the white space?
Example, remove jane from above and close the gap.
Reply
Answers (
9
)
sql query
simple breakpoints in C#