read files in as literally bites

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, ive been trying to figure out how i can get any type of file read in as
literally bytes. i tried using the binary reader, but if there was text at
all in the file, all i got was the text and the encoding for it. i want to
read all files in as there bit values...how can i do this?
 
iwdu15 said:
hi, ive been trying to figure out how i can get any type of file read in as
literally bytes. i tried using the binary reader, but if there was text at
all in the file, all i got was the text and the encoding for it. i want to
read all files in as there bit values...how can i do this?

Use the StreamReader class. Use the ReadBlock & Read methods.

You'll probably need the Convert class as well.

Hope it helps.

Chris
 
iwdu15 said:
hi, ive been trying to figure out how i can get any type of file read in
as
literally bytes. i tried using the binary reader, but if there was text at
all in the file, all i got was the text and the encoding for it. i want to
read all files in as there bit values...

Take a look at the 'FileStream' class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top