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

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -