• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to read non-text files

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to write java programm which copy all data on flash drive and write to hard drive.
there are serverl problems.

1)how to read non text files

2)how to write non text files
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this with regards to using all uppercase. I have adjusted the topic title for you.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would use the various ...Stream classes in the java.io package, especially FileInputStream, and FileOutputStream. The ...Reader and ...Writer classes are for text files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!