?
Solved

Applet to local file.

Posted on 1997-07-08
1
Medium Priority
?
193 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 180 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month16 days, 18 hours left to enroll

864 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