Solved

Applet to local file.

Posted on 1997-07-08
1
187 Views
Last Modified: 2010-04-16
I'm running on earthlink.net, using Netscape.  Earthlink.net just gave me a read/write file located in my webdocs, called "Data".  How do I append data to this file, from an applet, and how do I later recall it?
0
Comment
Question by:noviceprogrammer
1 Comment
 
LVL 1

Accepted Solution

by:
mann061997 earned 90 total points
ID: 1222786
In Java 1.0 you have to use a RandomAccessFile. In Java 1.1 you can pass
true as the second argument to the FileOutputStream constructor:

public FileOutputStream(String name,  boolean append) throws IOException.

FileInputStream lets you read back the data.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question