I have worked with maps before and I have come to the point where I need to save a map when I quit an application and load it when I open application.

How can I achieve this goal?

Do I have to save it to a file upon exit and then read it when I launch an application? Or put it into a data base?

Any help is appreciated.

Thanks.

Recommended Answers

Hello,

I have no experience in maps loading/saving. But, what you can have a look at is the output and input stream. lets assume its a text file, or a any file of some sort. You could save it to a location in your hard disk or next to …

Jump to Post

All 2 Replies

Hello,

I have no experience in maps loading/saving. But, what you can have a look at is the output and input stream. lets assume its a text file, or a any file of some sort. You could save it to a location in your hard disk or next to where your program is located, then load it upon launch (main method).

Look at the output and input stream in the Java API section.

Hope this helps =).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.