1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

About::File

Discussion in 'Java' started by kiddo, Jun 25, 2009.

  1. kiddo

    kiddo New Member

    Joined:
    Apr 11, 2009
    Messages:
    65
    Likes Received:
    1
    Trophy Points:
    0
    In java there are two Stream that can be used to write or read file.
    Byte Stream and Character Stream.
    Java also provided many classes to write and read file.

    My question is what and when to use these classes???
    I'm really confuse about this part.
    or was I misunderstand about it?
    ----------------------------------------------------------------------
    By: Babie Newbie
     
  2. devunion

    devunion New Member

    Joined:
    Sep 26, 2008
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    0
    You need to use the first stream to read/write binary files. An the second stream to read/write text files.
     
  3. kiddo

    kiddo New Member

    Joined:
    Apr 11, 2009
    Messages:
    65
    Likes Received:
    1
    Trophy Points:
    0
    So, what's the different between this binary file and text file?
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    The way they store the date.
     

Share This Page