ok, so if i do this:
1. open a .wav file using notepad
2. copy the contents of the .wav file from notepad
3. create a
        char *soundstring="";
in my c file;
4. paste the contents of the .wav file between the quotes in
        char *soundstring="";
like so
        char *soundstring="IOBD820Ṳ鷏..";//or something like that
5. escape the characters in *soundstring
6. and use fopen ("file.wav", "wb") to write the characters of *soundstring to file.wav
this will work?
if this can work can it work with a text file like a manifest file? MinGW can't seem to write a manifest file from its resource manifest file in .rc
fwrite is how to write bytes to a file, right?what's its syntax again?sorry
thanks in advance.

On Tue, 03 Oct 2006 07:45:53 +0800, Jakob Eriksson <[EMAIL PROTECTED]> wrote:

bj wrote:

Another question though is can tcc write raw bytes to a file like sound
bytes , you know the characters you see when you open a sound file in
notepad? If yes, can anyone here tell me how?

Just open a file with fopen ("file.wav", "wb");

// Jakob




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to