-
July 22nd, 1999, 11:34 AM
#1
ascii to binary conversion
How do I convert an ascii file to binary using java.
-
July 26th, 1999, 03:16 PM
#2
Re: ascii to binary conversion
Use FileInputStream
FileInputStream fis = new FileInputStream("ascii.txt");
FileOutputStream fos = new FileOutputStream("bin.txt");
int i;
do
{
i = fis.read();
fos.write(i);
}while(i!=-1);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|