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
ckjfr99
NA
10
0
problem accessing a file
Jul 28 2004 8:04 PM
When I'm runing my program in VS i'm creating a xml-file. When I then restart my program and trying to delete the file I get the error that the file is used by another process. How do i get ridd of this problem?? This is how my file is created: XmlTextWriter writer = new XmlTextWriter("jhk.xml", null); writer.Formatting = Formatting.Indented; writer.WriteStartDocument(); writer.WriteStartElement("user"); //writing a encrypted version of name and password writer.WriteElementString("name", crypt.Encrypt(tBUsername.Text.Trim(), "test")); writer.WriteElementString("password", crypt.Encrypt(tBPassword.Text.Trim(), "test")); writer.WriteEndElement(); writer.WriteEndDocument(); writer.Flush(); writer.Close();
Reply
Answers (
3
)
disabled and dimmed controls
Design issues