Hello friends, the code below shows an example of using filereader in java:
File.java:
import java.io.*;
class Filereader {
 public static void main(String args[]) throws IOException
 {
  FileReader f=new FileReader("File1.txt");
  BufferedReader b=new BufferedReader(f);
  String s;
  while((s=b.readLine())!=null)
   System.out.println(s);
 }
}
Have Funs.................
03 Jan 2014

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.