delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/14/08:53:34

From: Marcus Rohrmoser <marcus DOT rohrmoser AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: load and save variable
Date: Tue, 14 Sep 1999 12:28:00 +0200
Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany)
Distribution: world
Message-ID: <37DE2330.6D0E1F93@gmx.de>
References: <00b401befefc$cbd992c0$5df343c3 AT marocky>
NNTP-Posting-Host: sun3.lrz-muenchen.de
Mime-Version: 1.0
X-Mailer: Mozilla 4.61 [en] (X11; I; SunOS 5.5.1 sun4m)
X-Accept-Language: en
Lines: 7
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

If you want to be on the safe side of life, use "fprintf(file,"%d ",
variable)" and 
"fscanf(file,"%d ", &variable)" if it´s integer. This is not the most
compact storing, but will save you from several problems.

Marcus

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019