Click here to Skip to main content
15,887,853 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Im working on developing an installable software , and I want to embed a "new project" and "save" and "save as" button. I like to use some databases in my main application.
I dont want to save my outputs in some text or... Files and call them to my program later!

I have seen some applications save their outputs in one file.

I want to know more details about this metod.
I want to know, is the specific of this file like local database or not?

What I have tried:

Im trying to save my app outputs in one file!
Posted
Comments
Richard MacCutchan 14-Dec-17 8:02am    
What sort of project does your application create? That will determine what the save methods need to do.
Yas Ardavan 14-Dec-17 8:20am    
My app is a Structural Design software, and get some text data by windows form and after analysis and design, produces outputs.
Richard MacCutchan 14-Dec-17 8:35am    
What information are you trying to save? If you want everything in one file then you need some sort of identifier before each record so that you know what sort of data it is. Alternatively you could use a local database like SQL Compact Edition, or SQLite.
Yas Ardavan 14-Dec-17 9:39am    
Thank you for your help
Jochen Arndt 14-Dec-17 9:07am    
If you are using a database, there is no need for saving because updates are applied automatically.

New: Create an empty database (optionally with default tables and values) and open/connect that
Save As: Create a copy of the current database and open/connect that

If you want your application to behave similar to other file based applications but use a database engine for reading and writing, just use database files with local storage and an API like ODBC. Otherwise, you would have to setup a database server.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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