Solved

Applet to local file.

Posted on 1997-07-08
1
185 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 91
javap not working 8 45
java stored proc example 9 31
Tomcat: Unable to run tomcat service. 2 20
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

777 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