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
Mayur Gujrathi
405
3.9k
1m
Creting and writting text file
Dec 2 2011 1:25 AM
Dear friends
I am creating on .txt file like this
FileStream fileStream = new FileStream(@"C:\mayur.txt", FileMode.Create);
file is created
on next line i am trying to initialise one writer
TextWriter sw = new StreamWriter(@"C:\\mayur.txt");
but it is giving error file is being used by another person on this line
when I create file manually and then this code works fine but this i am not creating file in code
How to solve this problem
Reply
Answers (
1
)
How to parse a system timer interval to string (show timer on label.text) ??
How to write code based on the following logic?