Hi folks!
By using the FileOutputStream class, I am able to write to a file located in the same directory as my
applet. However, I am unable to read from a file as I am unable to create a URL.
I cannot state something like:
as the program that I am running is not an applet, but rather a
java GUI program whose methods are accessed by an applet. It extends Frame, not applet.
Therefore, getCodeBase() is not recognised.
Are there any other protocols that do the same thing i.e. that allow reading from a file.
Regards,
Sean