Re: How to convert binary file to ASCII file

From: a.m.a (amarcaurele_at_videotron.ca)
Date: 02/05/04


Date: Thu, 5 Feb 2004 11:51:05 -0500


"prinz" <de6666@lycos.com> wrote in message
news:402229FD.9F41FC2@lycos.com...
> How to convert binary file to ASCII file?
>
> Thanks in advance!
>

if you use ifstream and ofstream, load it in binary mode, but re-write a
file in ascii mode.

i think it should work



Relevant Pages

  • Re: test for binary mode?
    ... > maynard wrote: ... >> I have a class that reads a binary file and an ascii file. ... >> there is something stored in the ifstream object (or one of its base ... >> opened in binary mode. ...
    (microsoft.public.vc.language)
  • Re: Mutli Type in same file
    ... then you can use a Random file and just offset ... by the number of records the header took up. ... header out to 1000 bytes and read that in via binary mode. ... using a binary file and your own read and write code is not ...
    (comp.lang.basic.visual.misc)
  • Re: loading data from ascii file
    ... Random access in an ascii file is very difficult, if not impossible, ... I would suggest converting the whole mess to a binary file, ... then fwrite the output to your output file. ...
    (comp.soft-sys.matlab)
  • Print a string in binary format
    ... I have a binary file and wish to see the "raw" content of it. ... it in binary mode, and read one byte at a time to a variable, which ... but I just cannot find the appropriate method from the documentation. ...
    (comp.lang.python)
  • Re: fread can not read particular data
    ... The binary value 0x1A just happens to be the ASCII value CTRL-Z. ... you have opened a binary file in text mode. ... open the binary file in binary mode. ... darrell at cs dot toronto dot edu ...
    (comp.lang.c)