Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading and writing xml

Status
Not open for further replies.

chris123321

IS-IT--Management
Mar 13, 2007
139
US
If I have these lines of code:

Code:
tdsReportData.ReadXml(SessionFolder & "ReportData.xml")
tdsReportData.WriteXml(SessionFolder & "ReportData.xml")

This error comes: Access to the path "C:\LOG_FILES\ReportData.xml" is denied

Is that because tdsreportdata (dataset) is still holding ReportData.xml in memory? I tried adding the code to dispose the dataset between the read xml and write xml, but still get the same error.

Should I delete the file and then write the dataset to xml?

This is a test to see why I cannot writexml in a different section of the code.

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top