Hi again Wade::
Wade Carpenter,
In a message on 25 July, wrote :
WC> Ok.. Here's the problem. This code is meant to write 138 bytes of
nforma
WC> to a file, "ZS.CFG" but it writes whatever is entered plus garbage, or
WC>
WC> DOESN'T WORK:
WC> #include
WC>
WC> void main(void)
WC> {
WC> FILE *fp;
WC> char msg[88];
WC> char fspec[50];
/* Insert a couple of lines here and you should be through ..*/
memset(msg,0,88); /* Initializes msg and fspec
memset(fspec,0,50);
WC> fp = fopen("ZS.CFG","wt");
WC> fwrite(gets(msg),88,1,fp);
See you
Rajesh
...
* ATP/Linux 1.50 * A thief believes that everybody steals.
--- Maximus/2 3.01
---------------
* Origin: Kalptaru Net India. http://www.kalptaru.com . (6:606/31)
|