| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Char #10 and Gcc |
Hello Anton, AS> Ummmm...I'm writting a program with Gcc..works fine...almost :) AS> Actually, it reads in a data file, manipulates it, and rewrites it. AS> Oh, it reads it as CHAR chunks....only probs is, that when it writes AS> it out, and comes across a character 10, it puts charater 13 then 10. That's the usual LF -> CR/LF translation. If you don't deal with text files, you should use fopen(filename,"rb+"); This allows you to read and also to write - BINARY, without translation. greetings, Thomas --- FleetStreet 1.03.1 #111* Origin: Windo** 95: gesehen, gelacht, geloescht. (2:2474/400) SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 2474/400 0 2476/2 2452/110 105/42 712/515 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™.