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

Thread: ascii to binary conversion

  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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center