U
U
urmi tilek uulu2015-04-05 15:17:47
Java
urmi tilek uulu, 2015-04-05 15:17:47

There is a pass.db file. Is it possible to write and receive data there if this file is inside the project?

The bottom line is that I want to write a simple program where my logins and passwords will be stored. I tried to write to a plain text file, but after outputting to a Jar file, it is impossible to read from this file and write.
PS
I wanted this file (pass.db) to be inside this Jar file.
I don't know if this is possible. Thanks everyone!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
relgames, 2015-05-20
@urma

You can do it, but why?
Jar file is an archive. It is easy to read a file from an archive, it is more difficult to write it there. And, I suspect, Windows will not be able to do this (because the file will be locked).
Better save the file in the $HOME directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question