|
Thank you Marady Prak - Technical Support Specialist 300 Phillipi Road P.O. Box 28512 Columbus, OH 43228 Phone: 614-278-7186 Fax: 614-278-4769 Email: mprak@biglots.com Pager: 877-282-3426 PIN 6143956967 "Clapham, Paul" <pclapham@core-mar To: JAVA400-L@midrange.com k.com> cc: Sent by: Subject: RE: Dealing with AS/400 text file io owner-java400-l@mi drange.com 05/09/2001 11:20 AM Please respond to JAVA400-L No, Java classes that descend from InputStream never have a readLine() method. That's because they read bytes instead of characters. First you have to convert them to read characters, by wrapping them in an InputStreamReader, then if you want to read a line at a time you wrap that in a BufferedReader. Thus: BufferedReader br = new BufferedReader(new InputStreamReader(new IFSFileInputStream("/whatever"))); This is nothing to do with AS/400, it's standard Java procedure on any system. PC2 -----Original Message----- From: MaradyPrak@cnstores.com [mailto:MaradyPrak@cnstores.com] Sent: May 9, 2001 04:11 To: JAVA400-L@midrange.com Subject: Re: Dealing with AS/400 text file io It is a text file on IFS. I tried to use IFSFile,IFSFileInputStream, IFSFileOutputStream, etc. but there isn't a readLine() method in these classes. I want to be able to read one line at a time. With IFS file access classes above, you can only read for a specific amount of byte at a time not per line basis. Marady Prak - Technical Support Specialist 300 Phillipi Road P.O. Box 28512 Columbus, OH 43228 Phone: 614-278-7186 Fax: 614-278-4769 Email: mprak@biglots.com Pager: 877-282-3426 PIN 6143956967 +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.