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
HumptyNotSoDumpty
NA
23
0
Referencing an XML File within the Project
Jul 20 2004 8:02 AM
Does anyone know how to reference an XML that is stored within my project? The file is used for storing a very small 'database' and program settings. I can get it to work by hard-coding the path, or using the System.Environment.CurrentDirectory member. But I dont think this is satisfactory, because I would like to keep the file with the application, and be able to use it, wherever (in the file system) the program is installed. Simple test: private void Test { string sXmlFile = System.Environment.CurrentDirectory.ToString() + @"\TheXmlFile.xml"; DataSet ds = new DataSet(); ds.ReadXml(sXmlFile); }
Reply
Answers (
1
)
using VC++ 6.0 components in C#
update tables