convert a file into bytes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • celiaachkar
    New Member
    • Jul 2007
    • 12

    #1

    convert a file into bytes

    Hello,
    how can I do to read a file in java and convert each character in its ascii code?
    or read the file and get an array of bytes.

    Thank you

    celia
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by celiaachkar
    Hello,
    how can I do to read a file in java and convert each character in its ascii code?
    or read the file and get an array of bytes.

    Thank you

    celia
    Check the API docs for the InputStreams there and select the one that's most appropriate for you.

    Comment

    Working...