Click here to Skip to main content
15,915,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,everyone! I'm new in XML and Thread...I want to use XML file like a temp file for my application. I know how to open,write and save XML ,what my question is : I want the XML Template file be opened after I click a button, then a new form with many controls show, and this file should stay in memory and the controls' value will be written in it; I don't know how this file could stay in memory and wait for writing. Other question is, this open XML file should be saved in another folder in each 40s. How to do these?
PLZ give me some suggestions or example code!Thanks a lot!
Posted
Updated 23-Oct-10 16:05pm
v2

1 solution

Since you didn't specify I'll assume you are speaking of a Windows forms application. You create a static object, most likely a Singleton, that is instantiated when the app starts.

"...file should be saved in another folder in each 40s" 40s? Please clarify.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900