java - File operations working in AppletViewer but not Browser -


i working on applet save details , read later in new session opened user. have data.txt file in bin folder , using access it

url url = this.class.getresource("/data.txt"); fileoutputstream fostream=new fileoutputstream(url.getfile()); 

it runs expected in eclipse appletviewer, not in mozilla firefox browser(file operations aren't working) . seeing this , packaged code in jar , certified well. still isn't working. doing wrong here?


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -