Article View: borland.public.jbuilder.java.language
Article #18073RandomAccessFile with Serializable
From: Sam C. King
Date: Sat, 15 Aug 1998 00:00
Date: Sat, 15 Aug 1998 00:00
18 lines
1373 bytes
1373 bytes
How do you combine a RandomAccessFile with Serializable? The purpose is quite simple: Let's say that we want to create a random access file consisting of an Array of Classes. Each array element is a class containing: Employee Number Employee Name Employee Balance Now we want to set the RandomAccessFile pointer to a particular Class element within the Class Array, read in the entire Class for that employee with some simple statments from serializable, change the data for that employee, and write array element back into the file with some simple write statments as in serializable write. This is a simple requirement for C, C++, and just about any other language. Surely Java, with all of its power, can deftly handle this little problem. Yet none of the 22 texts on Java that I have here borches the subject. Thanks Sam samcking@olypen.com
Technical Details
Message-ID:
<35D62BE5.88900CE9@olypen.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,fea5eccffba95c50,start X-Google-Attributes: gidf74b3,public From: "Sam C. King" <samcking@olypen.com> Subject: RandomAccessFile with Serializable Date: 1998/08/15 Message-ID: <35D62BE5.88900CE9@olypen.com> X-Deja-AN: 381539273 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language