I'm writting some code that uses a serialized file. The file is called alcala.ser and is in utils, a subfolder of java. The class calling the file is in the same folder. Here's the code:
InputStream file = new FileInputStream("/alcala.ser");
I also tried:
InputStream file = new FileInputStream("alcala.ser");
In both cases, I get
java.io.FileNotFoundException: /alcala.ser: open failed: ENOENT (No such file or directory)
How should I reference the file?
Thanks in advance.