CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    ascii to binary conversion

    How do I convert an ascii file to binary using java.


  2. #2
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured