| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | writing text file |
A creature called Michael Ramsey screamed at All:
MR> I need to know how to write an ascii string with an eol to
MR> an arbitrary disk file. We are working on a project that
MR> must have all output written to normal dos ascii file.
MR>
MR> exa: "Windows 95 will never be released"
MR>
MR> We want to write this in C code and have it written to a
MR> file. We are currently using Borland C++ for OS/2 Version
MR> 2.0.
MR>
#include
FILE *handle;
if((handle=fopen("filename.txt","wt"))==NULL)
{
// print error messages or whatever here
}
fprintf(handle,"I think you mean Windoze 98...\n");
fclose(handle);
Good luck!
Mike Stella
Reverse Engineering
MKS94001{at}uconnvm.uconn.edu
SysOp:Shadowland - Max/Bink/Squish/Warp/V34
--- ShadowMail/2 1.00
* Origin: Shadowland/2 - USR DS V.34 - 203.456.1103 (1:327/138)SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430 SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809 @PATH: 327/138 469 1 324/288 3615/50 229/2 12/2442 711/409 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™.