<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-us" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="security" content="public" /> <meta name="Robots" content="index,follow" /> <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> <meta name="DC.Type" content="reference" /> <meta name="DC.Title" content="IFSFileReader" /> <meta name="abstract" content="Use this class for reading character files in the integrated file system." /> <meta name="description" content="Use this class for reading character files in the integrated file system." /> <meta name="DC.Relation" scheme="URI" content="ifsfilereaderjavadoc.htm" /> <meta name="copyright" content="(C) Copyright IBM Corporation 2006" /> <meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" /> <meta name="DC.Format" content="XHTML" /> <meta name="DC.Identifier" content="ifsfilereader" /> <meta name="DC.Language" content="en-us" /> <!-- All rights reserved. Licensed Materials Property of IBM --> <!-- US Government Users Restricted Rights --> <!-- Use, duplication or disclosure restricted by --> <!-- GSA ADP Schedule Contract with IBM Corp. --> <link rel="stylesheet" type="text/css" href="./ibmdita.css" /> <link rel="stylesheet" type="text/css" href="./ic.css" /> <title>IFSFileReader</title> </head> <body id="ifsfilereader"><a name="ifsfilereader"><!-- --></a> <img src="./delta.gif" alt="Start of change" /><!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">IFSFileReader</h1> <div><p>Use this class for reading character files in the integrated file system. </p> <div class="section"><p>IFSFileReader is meant for reading streams of characters. IFSFileReader replaces IFSTextFileOutputStream.</p> </div> <div class="example"><h4 class="sectiontitle">Example: Using IFSFileReader</h4>The following example illustrates the use of IFSFileReader:<pre> import java.io.BufferedReader; // Work with /File1 on the system eniac. AS400 system = new AS400("eniac"); IFSFile file = new IFSFile(system, "/File1"); BufferedReader reader = new BufferedReader(new IFSFileReader(file)); // Read the first line of the file, converting characters. String line1 = reader.readLine(); // Display the String that was read. System.out.println(line1); // Close the reader. reader.close();</pre> </div> </div> <div><div class="relinfo"><strong>Related information</strong><br /> <div><a href="ifsfilereaderjavadoc.htm">IFSFileReader Javadoc</a></div> </div> </div> <img src="./deltaend.gif" alt="End of change" /></body> </html>