ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/23/21:11:39

Message-ID: <3771852E.784D9EC6@scordon.com.br>
Date: Wed, 23 Jun 1999 22:09:02 -0300
From: producao <producao AT scordon DOT com DOT br>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Reading from the hard disk
References: <19990622135137 DOT 20252 DOT 00002902 AT ng-fu1 DOT aol DOT com>
Reply-To: djgpp AT delorie DOT com

LogosAZ wrote:
> 
> what command could read a string of characters out of a file into memory?

...
	#include <stdio.h>
...

	FILE *prFp;
   	char aString[1024*3];

	if((pfFP=fopen("file_name", "rt")) == NULL)
   	  exit(1);
	fgets(aString, 1024*2, prFp);
...

-- 
+-------------------------------------------+
|              Sistemas CORDON              |
|                                           | 
|         Aplicativos Definitivos           |
|                                           |
|  Home Page: www.scordon.com.br            |
|     e-mail: producao AT scordon DOT com DOT br       |
|                                           |
+-------------------------------------------+

- Raw text -


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