Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to write one Save method for the whole application. Any link or idea ??
Posted

1 solution

In essence, you can't - nobody has any idea what the application is going to be saving, how it needs to be saved, or where.

Think about a complex app like Visual Studio: It has to save SLN files (XML), PRJ files (XML), .CS (Text), .VB (Text), Debug info (PDB), intermediate files (OBJ), executables (EXE), Class libraries (DLL), native executables (EXE, but different), Native class libraries (DLL, but different again), etc., etc., etc..

Only you have any idea what your application is trying to save: it could be "flat" data on a single file basis, it could be relational data that is suitable for a Database. We have no idea.

So you need to sit down, work out what you need to save, and then start thinking about the most appropriate data forms to save them in. Then ask about that, if you still have questions. But we can't do that for you!
 
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