| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Structures and Binary |
PE> After opening the file as above, try going fputc(0x01, writepoint);
PE> and then close the file, and see what Xtree thinks of it then. You
PE> see, you actually have to write some binary data to a binary file
PE> before it starts looking like a binary file! If you only write
PE> printable text to a binary file, it will look just like a text file!
PE> BFN. Paul.
Hello Paul, I did what you said, but when you view it in XTreeGold
there is nothing in the file (theres stuff in it but you can't see it, and
the size of the file is 1 byte), then when you edit it it will edit it, and
it does not come up and say cannot edit non-text file, it just edits it,
and the only thing in the file is a happy face :-)... any ideas??. What i
mean is like if the file is a TRUE binary, when you view it in XTree Gold,
you get
000000 textúúúú etc etc... but with
writepoint=fopen("record.dat",wb"); it just don't go... (i
also repeated your command and just got more happy faces), thanks for ya
help though, got any more commands to try?? :-)..
And, if you have to write binary data to a file, how can you write a
line of normal text to a binary file?.. Cya!
Keith
@NOTE: IceEdit 1.60 [Eval]
--- GEcho 1.00
* Origin: The Abduction BBS, Mudgee Nsw, +61-63-72-6855 - 3:623/682 (3:623/682)SEEN-BY: 50/99 78/0 620/243 623/353 411 624 630 631 682 683 689 812 711/401 SEEN-BY: 711/409 410 413 430 808 809 932 934 712/515 713/888 714/906 800/1 SEEN-BY: 7877/2809 @PATH: 623/682 624 812 630 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.