files in java

Discussion in 'Java' started by Zahid, Apr 6, 2007.

  1. Zahid

    Zahid New Member

    Joined:
    Apr 6, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I am new to files in java. I cannot able to understand the difference between FileInputStream and FileReader. Can u help me

    Thank you,
    Regards.
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Posted in wrong section!
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    The Main difference is
    Streams - Byte Based(Read or write Bytes)[Mainly used for Binary files)
    Reader - Character Based(Read or Write Character)[for Text files]
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Moved to the java forum.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice