🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15028

PrintWriter.println(Object) - any equivalent read(Object)?

#15028
From: Lois Neo
Date: Tue, 13 Jul 1999 00:00
12 lines
982 bytes
Hi,

I have a problem with reading an object from a text file, previously written
using the PrintWriter.println(MyObject) method. I'm not sure how I can read
it back from the file. ObjectInputStream seems to work only for
ObjectOutputStream written objects. I tried reading the object as String,
but then dunno if there's any way I can convert it back to MyObject?

--
Thanks for any help given

Lois
Technical Details
Message-ID: <7meq5t$sqd10@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1470b9b9a4394f04,start
X-Google-Attributes: gidf74b3,public
From: "Lois Neo" <slneo@cybergal.com>
Subject: PrintWriter.println(Object) - any equivalent read(Object)?
Date: 1999/07/13
Message-ID: <7meq5t$sqd10@forums.borland.com>
X-Deja-AN: 500426542
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "Lois Neo" <slneo@cybergal.com>
Newsgroups: borland.public.jbuilder.java.language