ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahh_5.4.0.1/ifsfilewriter.htm

53 lines
3.0 KiB
HTML

<?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="IFSFileWriter" />
<meta name="abstract" content="Use IFSFileWriter for writing character files in the integrated file system. IFSFileWriter is meant for writing streams of characters." />
<meta name="description" content="Use IFSFileWriter for writing character files in the integrated file system. IFSFileWriter is meant for writing streams of characters." />
<meta name="DC.Relation" scheme="URI" content="ifsfilewriterjavadoc.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="ifsfilewriter" />
<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>IFSFileWriter</title>
</head>
<body id="ifsfilewriter"><a name="ifsfilewriter"><!-- --></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">IFSFileWriter</h1>
<div><p>Use IFSFileWriter for writing character files in the integrated
file system. IFSFileWriter is meant for writing streams of characters.</p>
<div class="section"><p>IFSFileWriter is the replacement of IFSTextFileOutputStream.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example: Using IFSFileWriter</h4>The following example
illustrates the use of IFSFileWriter:<pre> import java.io.PrintWriter;
import java.io.BufferedWriter;
// Work with /File1 on the system mysystem.
AS400 as400 = new AS400("mysystem");
IFSFile file = new IFSFile(system, "/File1");
PrintWriter writer = new PrintWriter(new BufferedWriter(new IFSFileWriter(file)));
// Write a line of text to the file, converting characters.
writer.println(text);
// Close the file.
writer.close();</pre>
</div>
</div>
<div><div class="relinfo"><strong>Related information</strong><br />
<div><a href="ifsfilewriterjavadoc.htm">IFSFileWriter Javadoc</a></div>
</div>
</div>
<img src="./deltaend.gif" alt="End of change" /></body>
</html>