<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JSP, Tomcat, JDBC, Projects, Example, Program &#187; java.io</title>
	<atom:link href="http://www.easywayserver.com/blog/tag/java-io/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.easywayserver.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 04 Jun 2011 05:32:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Java I/O Stream</title>
		<link>http://www.easywayserver.com/blog/java-io-stream/</link>
		<comments>http://www.easywayserver.com/blog/java-io-stream/#comments</comments>
		<pubDate>Tue, 17 May 2011 07:40:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java.io]]></category>

		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=757</guid>
		<description><![CDATA[By: Pankaj Yadav
It can be used to write the data on file. It provides us methods to perform various tasks on the file. In order to use this class we have to import java.IO package.
Syntax:
import java.io.*;
In this package we have input stream and output stream for read and write in a file.
Input Stream
The java.io.InputStream is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-io-stream%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-io-stream%2F" height="61" width="51" /></a></div><p>By: Pankaj Yadav</p>
<p>It can be used to write the data on file. It provides us methods to perform various tasks on the file. In order to use this class we have to import java.IO package.</p>
<p>Syntax:</p>
<p><em>import java.io.*;</em></p>
<p>In this package we have input stream and output stream for read and write in a file.</p>
<h2>Input Stream</h2>
<p>The java.io.InputStream is the base class of the input streams in java .The input stream read data form a file with the help of  read() method. The read() method returns integer type value. If read() method does not have any byte to read returns the -1.</p>
<p>Example:</p>
<pre  class="brush: java">
InputStream inputs = new FileInputStream(&quot;c://data//file.txt&quot;);
int _idata = inputs.read();
while( _idata> -1 )
{
_idata = inputs.read();
}
</pre>
<h2>Output Stream</h2>
<p>The java.io.OutputStream is the base class of the output streams in java. The write() method is used to write the data in the file .</p>
<p>Example:</p>
<pre  class="brush: java">
import java.io.FileOutputStream;
import java.io.OutputStream;

public class OutputStreamExample {

	public static void main(String[] args) {

		try{
			OutputStream out = new FileOutputStream(&quot;c://file.txt&quot;);
			out.write(&quot;testOutputstream&quot;.getBytes());
			out.close();
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}

}
</pre>
<p> We can also use these streams in the sequence to perform the different tasks. This class also provides the buffering techniques for faster performance. </p>
<div id="crp_related"><h3>Related Posts:</h3><ul style="list-style:disc;padding-left:20px"><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-read-file-read-text-from-file/" rel="bookmark" class="crp_title">Java &#8211; How to Read file, Read text from File</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-edit-file-example-modify-file-java/" rel="bookmark" class="crp_title">Java &#8211; Edit File Example, Modify File java</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/properties-in-java/" rel="bookmark" class="crp_title">Properties in JAVA</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-read-file-without-datainputstream/" rel="bookmark" class="crp_title">Java &#8211; Read file without DataInputStream</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/how-to-serializable-object-in-java/" rel="bookmark" class="crp_title">How to serializable object in java</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-write-text-file-write-content-in-file/" rel="bookmark" class="crp_title">Java &#8211; How to Write text file, Write Content in File</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.easywayserver.com/blog/java-io-stream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java &#8211; Read file without DataInputStream</title>
		<link>http://www.easywayserver.com/blog/java-read-file-without-datainputstream/</link>
		<comments>http://www.easywayserver.com/blog/java-read-file-without-datainputstream/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 13:45:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java.io]]></category>

		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=493</guid>
		<description><![CDATA[Read File in java without DataInputStream class. DataInputStream class is deprecated. Instead of DataInputStream class we can use BufferedReader to read file in java.
This example will explain read file in java.

import java.io.File;
import java.io.FileInputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class JavaReadFileExample {

    public static void main(String[] args) {

        File [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-read-file-without-datainputstream%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-read-file-without-datainputstream%2F" height="61" width="51" /></a></div><p>Read File in java without DataInputStream class. DataInputStream class is deprecated. Instead of DataInputStream class we can use BufferedReader to read file in java.</p>
<p>This example will explain read file in java.</p>
<div class="cde">
<pre><span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>File</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>FileInputStream</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>BufferedReader</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>InputStreamReader</span><span style='color:#800080; '>;</span>

<span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>class</span> JavaReadFileExample <span style='color:#800080; '>{</span>

    <span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>static</span> <span style='color:#bb7977; '>void</span> main<span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>String</span><span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> args<span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>

        <span style='color:#bb7977; font-weight:bold; '>File</span> f<span style='color:#808030; '>=</span><span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>File</span><span style='color:#808030; '>(</span><span style='color:#0000e6; '>&quot;c:</span><span style='color:#0f69ff; '>\\</span><span style='color:#0000e6; '>readFileinJava.txt&quot;</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#800000; font-weight:bold; '>try</span> <span style='color:#800080; '>{</span>
            <span style='color:#bb7977; font-weight:bold; '>FileInputStream</span> fs <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>FileInputStream</span><span style='color:#808030; '>(</span>f<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            <span style='color:#bb7977; font-weight:bold; '>InputStreamReader</span> in <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>InputStreamReader</span><span style='color:#808030; '>(</span>fs<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            <span style='color:#bb7977; font-weight:bold; '>BufferedReader</span> br <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>BufferedReader</span><span style='color:#808030; '>(</span>in<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

            <span style='color:#bb7977; font-weight:bold; '>String</span> text<span style='color:#800080; '>;</span>

            <span style='color:#800000; font-weight:bold; '>while</span><span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>true</span><span style='color:#808030; '>)</span>
            <span style='color:#800080; '>{</span>
                text<span style='color:#808030; '>=</span>br<span style='color:#808030; '>.</span>readLine<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
                <span style='color:#800000; font-weight:bold; '>if</span><span style='color:#808030; '>(</span>text<span style='color:#808030; '>=</span><span style='color:#808030; '>=</span><span style='color:#800000; font-weight:bold; '>null</span><span style='color:#808030; '>)</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
                <span style='color:#bb7977; font-weight:bold; '>System</span><span style='color:#808030; '>.</span>out<span style='color:#808030; '>.</span>println<span style='color:#808030; '>(</span>text<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            <span style='color:#800080; '>}</span>
        <span style='color:#800080; '>}</span>
        <span style='color:#800000; font-weight:bold; '>catch</span> <span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>Exception</span> e<span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>
            e<span style='color:#808030; '>.</span>printStackTrace<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#800080; '>}</span>
    <span style='color:#800080; '>}</span>
<span style='color:#800080; '>}</span>
</pre>
</div>
<div id="crp_related"><h3>Related Posts:</h3><ul style="list-style:disc;padding-left:20px"><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-read-file-read-text-from-file/" rel="bookmark" class="crp_title">Java &#8211; How to Read file, Read text from File</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-edit-file-example-modify-file-java/" rel="bookmark" class="crp_title">Java &#8211; Edit File Example, Modify File java</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-write-text-file-write-content-in-file/" rel="bookmark" class="crp_title">Java &#8211; How to Write text file, Write Content in File</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-run-ssh-commands-in-linux/" rel="bookmark" class="crp_title">Java &#8211; Run ssh commands in linux</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-create-file-in-java/" rel="bookmark" class="crp_title">Java &#8211; How to Create file in Java</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-io-stream/" rel="bookmark" class="crp_title">Java I/O Stream</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.easywayserver.com/blog/java-read-file-without-datainputstream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java &#8211; Run shell command in java</title>
		<link>http://www.easywayserver.com/blog/java-run-shell-command-in-java/</link>
		<comments>http://www.easywayserver.com/blog/java-run-shell-command-in-java/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 13:33:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java.io]]></category>

		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=491</guid>
		<description><![CDATA[Execute Shell command can be run by Runtime class. Shell can be executed in linux or unix platform. 
This example will explain how to run shell commands in java and execute commands in java.

public class JavaRunCommandExample {

    public static void main(String[] args) {

        Runtime r [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-run-shell-command-in-java%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-run-shell-command-in-java%2F" height="61" width="51" /></a></div><p>Execute Shell command can be run by Runtime class. Shell can be executed in linux or unix platform. </p>
<p>This example will explain how to run shell commands in java and execute commands in java.</p>
<div class="cde">
<pre><span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>class</span> JavaRunCommandExample <span style='color:#800080; '>{</span>

    <span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>static</span> <span style='color:#bb7977; '>void</span> main<span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>String</span><span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> args<span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>

        <span style='color:#bb7977; font-weight:bold; '>Runtime</span> r <span style='color:#808030; '>=</span> <span style='color:#bb7977; font-weight:bold; '>Runtime</span><span style='color:#808030; '>.</span>getRuntime<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#bb7977; font-weight:bold; '>Process</span> p <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>null</span><span style='color:#800080; '>;</span>
        <span style='color:#bb7977; font-weight:bold; '>String</span> cmd<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> <span style='color:#808030; '>=</span> <span style='color:#800080; '>{</span><span style='color:#0000e6; '>&quot;/bin/sh&quot;</span><span style='color:#808030; '>,</span><span style='color:#0000e6; '>&quot;ls&quot;</span><span style='color:#808030; '>,</span><span style='color:#0000e6; '>&quot;-l&quot;</span><span style='color:#800080; '>}</span><span style='color:#800080; '>;</span>

        <span style='color:#800000; font-weight:bold; '>try</span> <span style='color:#800080; '>{</span>
            p <span style='color:#808030; '>=</span> r<span style='color:#808030; '>.</span>exec<span style='color:#808030; '>(</span>cmd<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#800080; '>}</span> <span style='color:#800000; font-weight:bold; '>catch</span> <span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>Exception</span> e<span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>
            e<span style='color:#808030; '>.</span>printStackTrace<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#800080; '>}</span>
    <span style='color:#800080; '>}</span>
<span style='color:#800080; '>}</span>
</pre>
</div>
<div id="crp_related"><h3>Related Posts:</h3><ul style="list-style:disc;padding-left:20px"><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-execute-command-in-java/" rel="bookmark" class="crp_title">Java &#8211; How to execute command in java</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-run-ssh-commands-in-linux/" rel="bookmark" class="crp_title">Java &#8211; Run ssh commands in linux</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/overview-of-java-virtual-machine/" rel="bookmark" class="crp_title">Overview of Java Virtual Machine</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-run-program-automatically-on-tomcat-startup/" rel="bookmark" class="crp_title">Java &#8211; Run program automatically on tomcat startup</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/global-variable-in-jsp/" rel="bookmark" class="crp_title">Global variable in JSP</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/link-checker-in-java/" rel="bookmark" class="crp_title">Link checker in java</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.easywayserver.com/blog/java-run-shell-command-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java &#8211; Edit File Example, Modify File java</title>
		<link>http://www.easywayserver.com/blog/java-edit-file-example-modify-file-java/</link>
		<comments>http://www.easywayserver.com/blog/java-edit-file-example-modify-file-java/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 10:02:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java.io]]></category>

		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=484</guid>
		<description><![CDATA[File can be appended by File class and other input output stream. To write content in a file in java we need to use java.io package.  File class is used to create a file at specific path. We can use either StringBuffer for text and content to store in file.  In java we [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-edit-file-example-modify-file-java%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-edit-file-example-modify-file-java%2F" height="61" width="51" /></a></div><p>File can be appended by File class and other input output stream. To write content in a file in java we need to use java.io package.  File class is used to create a file at specific path. We can use either StringBuffer for text and content to store in file.  In java we can write file with FileWriter class with BufferedWriter class. write() method is used to create file and write the content in file.</p>
<p>To edit file in java we need to search text which replace with new text. indexOf() method will search text in java and append() method will modify old content in string.</p>
<p>This example will explain how to edit file in java and modify text in file by java.</p>
<p>text file in c drive</p>
<div class="cde">
<p>Content in this text, abc change xyz with new content by java io package </p>
</div>
<p></p>
<div class="cde">
<pre><span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>BufferedReader</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>BufferedWriter</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>File</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>FileInputStream</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>FileNotFoundException</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>FileWriter</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>IOException</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>InputStreamReader</span><span style='color:#800080; '>;</span>

<span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>class</span> JavaIOEditFileExample <span style='color:#800080; '>{</span>

    <span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>static</span> <span style='color:#bb7977; '>void</span> main<span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>String</span><span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> args<span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>

        <span style='color:#bb7977; font-weight:bold; '>File</span> f<span style='color:#808030; '>=</span><span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>File</span><span style='color:#808030; '>(</span><span style='color:#0000e6; '>&quot;c:</span><span style='color:#0f69ff; '>\\</span><span style='color:#0000e6; '>appendOldFile.txt&quot;</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#bb7977; font-weight:bold; '>FileInputStream</span> fs <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>null</span><span style='color:#800080; '>;</span>
        <span style='color:#bb7977; font-weight:bold; '>InputStreamReader</span> in <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>null</span><span style='color:#800080; '>;</span>
        <span style='color:#bb7977; font-weight:bold; '>BufferedReader</span> br <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>null</span><span style='color:#800080; '>;</span>

        <span style='color:#bb7977; font-weight:bold; '>StringBuffer</span> sb <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>StringBuffer</span><span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#bb7977; font-weight:bold; '>String</span> textinLine<span style='color:#800080; '>;</span>

        <span style='color:#800000; font-weight:bold; '>try</span> <span style='color:#800080; '>{</span>
             fs <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>FileInputStream</span><span style='color:#808030; '>(</span>f<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
             in <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>InputStreamReader</span><span style='color:#808030; '>(</span>fs<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
             br <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>BufferedReader</span><span style='color:#808030; '>(</span>in<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

            <span style='color:#800000; font-weight:bold; '>while</span><span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>true</span><span style='color:#808030; '>)</span>
            <span style='color:#800080; '>{</span>
                textinLine<span style='color:#808030; '>=</span>br<span style='color:#808030; '>.</span>readLine<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
                <span style='color:#800000; font-weight:bold; '>if</span><span style='color:#808030; '>(</span>textinLine<span style='color:#808030; '>=</span><span style='color:#808030; '>=</span><span style='color:#800000; font-weight:bold; '>null</span><span style='color:#808030; '>)</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
                sb<span style='color:#808030; '>.</span>append<span style='color:#808030; '>(</span>textinLine<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            <span style='color:#800080; '>}</span>
              <span style='color:#bb7977; font-weight:bold; '>String</span> textToEdit1 <span style='color:#808030; '>=</span> <span style='color:#0000e6; '>&quot;abc&quot;</span><span style='color:#800080; '>;</span>
              <span style='color:#bb7977; '>int</span> cnt1 <span style='color:#808030; '>=</span> sb<span style='color:#808030; '>.</span>indexOf<span style='color:#808030; '>(</span>textToEdit1<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
              sb<span style='color:#808030; '>.</span>replace<span style='color:#808030; '>(</span>cnt1<span style='color:#808030; '>,</span>cnt1<span style='color:#808030; '>+</span>textToEdit1<span style='color:#808030; '>.</span>length<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span><span style='color:#0000e6; '>&quot;New Append text&quot;</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

              <span style='color:#bb7977; font-weight:bold; '>String</span> textToEdit2 <span style='color:#808030; '>=</span> <span style='color:#0000e6; '>&quot;xyz&quot;</span><span style='color:#800080; '>;</span>
              <span style='color:#bb7977; '>int</span> cnt2 <span style='color:#808030; '>=</span> sb<span style='color:#808030; '>.</span>indexOf<span style='color:#808030; '>(</span>textToEdit2<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
              sb<span style='color:#808030; '>.</span>replace<span style='color:#808030; '>(</span>cnt2<span style='color:#808030; '>,</span>cnt2<span style='color:#808030; '>+</span>textToEdit2<span style='color:#808030; '>.</span>length<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span><span style='color:#0000e6; '>&quot;Second new edit text&quot;</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

              fs<span style='color:#808030; '>.</span>close<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
              in<span style='color:#808030; '>.</span>close<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
              br<span style='color:#808030; '>.</span>close<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

            <span style='color:#800080; '>}</span> <span style='color:#800000; font-weight:bold; '>catch</span> <span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>FileNotFoundException</span> e<span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>
              e<span style='color:#808030; '>.</span>printStackTrace<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            <span style='color:#800080; '>}</span> <span style='color:#800000; font-weight:bold; '>catch</span> <span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>IOException</span> e<span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>
              e<span style='color:#808030; '>.</span>printStackTrace<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            <span style='color:#800080; '>}</span>

            <span style='color:#800000; font-weight:bold; '>try</span><span style='color:#800080; '>{</span>
                <span style='color:#bb7977; font-weight:bold; '>FileWriter</span> fstream <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>FileWriter</span><span style='color:#808030; '>(</span>f<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
                <span style='color:#bb7977; font-weight:bold; '>BufferedWriter</span> outobj <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>BufferedWriter</span><span style='color:#808030; '>(</span>fstream<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
                outobj<span style='color:#808030; '>.</span>write<span style='color:#808030; '>(</span>sb<span style='color:#808030; '>.</span>toString<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
                outobj<span style='color:#808030; '>.</span>close<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

            <span style='color:#800080; '>}</span><span style='color:#800000; font-weight:bold; '>catch</span> <span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>Exception</span> e<span style='color:#808030; '>)</span><span style='color:#800080; '>{</span>
              <span style='color:#bb7977; font-weight:bold; '>System</span><span style='color:#808030; '>.</span>err<span style='color:#808030; '>.</span>println<span style='color:#808030; '>(</span><span style='color:#0000e6; '>&quot;Error: &quot;</span> <span style='color:#808030; '>+</span> e<span style='color:#808030; '>.</span>getMessage<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            <span style='color:#800080; '>}</span>
    <span style='color:#800080; '>}</span>
<span style='color:#800080; '>}</span>
</pre>
</div>
<p><strong>Output</strong></p>
<div class="cde">
<p class="op">
Content in this text, <strong>New Append text</strong> change <strong>Second new edit text</strong> with new content by java io package
</p>
</div>
<div id="crp_related"><h3>Related Posts:</h3><ul style="list-style:disc;padding-left:20px"><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-write-text-file-write-content-in-file/" rel="bookmark" class="crp_title">Java &#8211; How to Write text file, Write Content in File</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-read-file-read-text-from-file/" rel="bookmark" class="crp_title">Java &#8211; How to Read file, Read text from File</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-create-file-in-java/" rel="bookmark" class="crp_title">Java &#8211; How to Create file in Java</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-read-file-without-datainputstream/" rel="bookmark" class="crp_title">Java &#8211; Read file without DataInputStream</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-io-stream/" rel="bookmark" class="crp_title">Java I/O Stream</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-upload-image-in-database/" rel="bookmark" class="crp_title">Java &#8211; Insert Image in Database</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.easywayserver.com/blog/java-edit-file-example-modify-file-java/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Java &#8211; How to Write text file, Write Content in File</title>
		<link>http://www.easywayserver.com/blog/java-how-to-write-text-file-write-content-in-file/</link>
		<comments>http://www.easywayserver.com/blog/java-how-to-write-text-file-write-content-in-file/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 13:44:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java.io]]></category>

		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=477</guid>
		<description><![CDATA[To write content in a file in java we need to use java.io package. File class is used to create a file at specific path. We can use either StringBuffer or StringBuilder for text and content to store in file.  In java we can write file with FileWriter class with BufferedWriter class. write() method [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-how-to-write-text-file-write-content-in-file%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-how-to-write-text-file-write-content-in-file%2F" height="61" width="51" /></a></div><p>To write content in a file in java we need to use java.io package. File class is used to create a file at specific path. We can use either StringBuffer or StringBuilder for text and content to store in file.  In java we can write file with FileWriter class with BufferedWriter class. write() method is used to create file and write the content in file.</p>
<p>Example will explains how to write text a file in java </p>
<div class="cde">
<pre><span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>BufferedWriter</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>File</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>FileWriter</span><span style='color:#800080; '>;</span>

<span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>class</span> JavaIOWriteTextFileExample <span style='color:#800080; '>{</span>

    <span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>static</span> <span style='color:#bb7977; '>void</span> main<span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>String</span><span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> args<span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>

        <span style='color:#bb7977; font-weight:bold; '>File</span> f<span style='color:#808030; '>=</span><span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>File</span><span style='color:#808030; '>(</span><span style='color:#0000e6; '>&quot;c:</span><span style='color:#0f69ff; '>\\</span><span style='color:#0000e6; '>writeContentfile.txt&quot;</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#bb7977; font-weight:bold; '>StringBuffer</span> sb <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>StringBuffer</span><span style='color:#808030; '>(</span><span style='color:#0000e6; '>&quot;Text Content to write in java file&quot;</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#800000; font-weight:bold; '>try</span><span style='color:#800080; '>{</span>
            <span style='color:#bb7977; font-weight:bold; '>FileWriter</span> fwriter <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>FileWriter</span><span style='color:#808030; '>(</span>f<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            <span style='color:#bb7977; font-weight:bold; '>BufferedWriter</span> bwriter <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>BufferedWriter</span><span style='color:#808030; '>(</span>fwriter<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            bwriter<span style='color:#808030; '>.</span>write<span style='color:#808030; '>(</span>sb<span style='color:#808030; '>.</span>toString<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            bwriter<span style='color:#808030; '>.</span>close<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
         <span style='color:#800080; '>}</span>
        <span style='color:#800000; font-weight:bold; '>catch</span> <span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>Exception</span> e<span style='color:#808030; '>)</span><span style='color:#800080; '>{</span>
              e<span style='color:#808030; '>.</span>printStackTrace<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
         <span style='color:#800080; '>}</span>
    <span style='color:#800080; '>}</span>
<span style='color:#800080; '>}</span>
</pre>
</div>
<div id="crp_related"><h3>Related Posts:</h3><ul style="list-style:disc;padding-left:20px"><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-create-file-in-java/" rel="bookmark" class="crp_title">Java &#8211; How to Create file in Java</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-edit-file-example-modify-file-java/" rel="bookmark" class="crp_title">Java &#8211; Edit File Example, Modify File java</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-read-file-read-text-from-file/" rel="bookmark" class="crp_title">Java &#8211; How to Read file, Read text from File</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-io-stream/" rel="bookmark" class="crp_title">Java I/O Stream</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-read-file-without-datainputstream/" rel="bookmark" class="crp_title">Java &#8211; Read file without DataInputStream</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/upload-file-in-struts/" rel="bookmark" class="crp_title">Upload file in struts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.easywayserver.com/blog/java-how-to-write-text-file-write-content-in-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java &#8211; How to Create file in Java</title>
		<link>http://www.easywayserver.com/blog/java-how-to-create-file-in-java/</link>
		<comments>http://www.easywayserver.com/blog/java-how-to-create-file-in-java/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 13:27:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java.io]]></category>

		<guid isPermaLink="false">http://www.easywayserver.com/blog/?p=475</guid>
		<description><![CDATA[To create a file in java we need to use java.io package. File class is used to create a file at specific path.  In java we can write file with FileWriter class with BufferedWriter class. write() method is used to create file and write the content in file. 
Example will explain how to create [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-how-to-create-file-in-java%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.easywayserver.com%2Fblog%2Fjava-how-to-create-file-in-java%2F" height="61" width="51" /></a></div><p>To create a file in java we need to use java.io package. File class is used to create a file at specific path.  In java we can write file with FileWriter class with BufferedWriter class. write() method is used to create file and write the content in file. </p>
<p>Example will explain how to create a file in java and how to write file in Java</p>
<div class="cde">
<pre><span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>File</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>FileWriter</span><span style='color:#800080; '>;</span>
<span style='color:#800000; font-weight:bold; '>import</span><span style='color:#004a43; '> java</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>io</span><span style='color:#808030; '>.</span><span style='color:#004a43; '>BufferedWriter</span><span style='color:#800080; '>;</span>

<span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>class</span> JavaIOWriteFileExample <span style='color:#800080; '>{</span>

    <span style='color:#800000; font-weight:bold; '>public</span> <span style='color:#800000; font-weight:bold; '>static</span> <span style='color:#bb7977; '>void</span> main<span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>String</span><span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> args<span style='color:#808030; '>)</span> <span style='color:#800080; '>{</span>

        <span style='color:#bb7977; font-weight:bold; '>File</span> f<span style='color:#808030; '>=</span><span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>File</span><span style='color:#808030; '>(</span><span style='color:#0000e6; '>&quot;c:</span><span style='color:#0f69ff; '>\\</span><span style='color:#0000e6; '>createNewfile.txt&quot;</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#800000; font-weight:bold; '>try</span><span style='color:#800080; '>{</span>
            <span style='color:#bb7977; font-weight:bold; '>FileWriter</span> fstreamCopy <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>FileWriter</span><span style='color:#808030; '>(</span>f<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            <span style='color:#bb7977; font-weight:bold; '>BufferedWriter</span> outobjCopy <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> <span style='color:#bb7977; font-weight:bold; '>BufferedWriter</span><span style='color:#808030; '>(</span>fstreamCopy<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            outobjCopy<span style='color:#808030; '>.</span>write<span style='color:#808030; '>(</span><span style='color:#0000e6; '>&quot;The content write to inside the file&quot;</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            outobjCopy<span style='color:#808030; '>.</span>close<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
         <span style='color:#800080; '>}</span>
        <span style='color:#800000; font-weight:bold; '>catch</span> <span style='color:#808030; '>(</span><span style='color:#bb7977; font-weight:bold; '>Exception</span> e<span style='color:#808030; '>)</span><span style='color:#800080; '>{</span>
              e<span style='color:#808030; '>.</span>printStackTrace<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
         <span style='color:#800080; '>}</span>
    <span style='color:#800080; '>}</span>
<span style='color:#800080; '>}</span>
</pre>
</div>
<div id="crp_related"><h3>Related Posts:</h3><ul style="list-style:disc;padding-left:20px"><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-write-text-file-write-content-in-file/" rel="bookmark" class="crp_title">Java &#8211; How to Write text file, Write Content in File</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-edit-file-example-modify-file-java/" rel="bookmark" class="crp_title">Java &#8211; Edit File Example, Modify File java</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-how-to-read-file-read-text-from-file/" rel="bookmark" class="crp_title">Java &#8211; How to Read file, Read text from File</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-io-stream/" rel="bookmark" class="crp_title">Java I/O Stream</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/java-read-file-without-datainputstream/" rel="bookmark" class="crp_title">Java &#8211; Read file without DataInputStream</a></li><li style="padding-left:8px"><a href="http://www.easywayserver.com/blog/upload-file-in-struts/" rel="bookmark" class="crp_title">Upload file in struts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.easywayserver.com/blog/java-how-to-create-file-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

