john smith wrote:
> Hello, I still need some help with this.
>
> When I open the file for writing in ASCII, it writes fine. Then I close it
> and reopen it like so:
> in.open(filename, ios_base::binary | ios_base:ate), and then I write my
> data. When I open the file in notepad, the contents have become all
> gibberish, like it's a binary file. But what I'm trying to do is something
> like some Linux installation scripts. There is a text area which is human
> readable, then it's followed by the binary area. The presumably the text
> readable area is parsed by the shell and the binary area is executed. While
> that's not what I'm trying to do, I am trying to write and read some raw
> data, while being able to parse information about that data in raw text...
>
> Any insights would be appreciated. Thanks in advance.
>
> Smith
Please post your code and indicate where you are having problems.
Also state the expected behavior and the actual behavior.
This will allow people to assist you better.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book