java - Load .ser file which is inside my project explorer -
Load .Ser file that is inside of my project explorer
I'm working around With file path and serialization, and all this is fine, however, my file path with my current code was only the filename ("StudentSaire"), which would obviously save files outside the project which is not very good (unorganized) is.
To keep this archive, I am trying to find and distribute the file path to get my project current path inside .
Here's a more graphical idea of what I'm trying to say:
![]()
I do not want to make the whole path harder because it's just an easy way of doing what I am trying to do, Only within the project will I create.
If you want read files, then ST use
this.getClass () .getClassLoader () .getResourceAsstream ("jdatabase / collections / students.ser")
and use the provided stream of your items remove.
Comments
Post a Comment