nt: Sunday, January 06, 2002 8:15
PM
Subject: Re: [hlcoders] file reading
from...
[CODE]
#include stdio.h
// not sure which one or both of these two includes you
need
#include stdlib.h
FILE *pFile = NULL;
void MyFunction( void )
{
pFile = fopen( "filen
:)
- Original Message -
From: Christopher Long [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 11:52 AM
Subject: Re: [hlcoders] file reading from...
when using c++ file streams to detect end of file you can do something like
ifstream if;
if.open(filename, flags
when using c++ file streams to detect end of file you can do something
like
ifstream if;
if.open(filename, flags);
while(!in.eof() )
{
read lots of stuff in
}
in.close();
i am not fluent with c's file openings and such but i have managed to open
files read from it etc but what i now
Stuart Walsh wrote:
char buf[1024];
Technically an array is not quite the same as a pointer, it's more like
a pointer constant. So assigning to it, like this
buf = fgets( buf, 1024, fptr );
is not legal. You need to have a separate pointer variable, or simpler,
just test the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
- - Original Message -
From: Ralph Hartley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 3:40 PM
Subject: Re: [hlcoders] file reading from...
Stuart Walsh wrote:
char buf[1024];
Technically an array
Sent: Saturday, January 05, 2002 7:39
PM
Subject: [hlcoders] file reading
from...
gEngfuncs.COM_ParseFile takes tokens from the
file and with it i can keep grabbing tokens but each token is delimited by
white space.
char* pFile =
gEngfuncs.COM_LoadFile("
mapperwww.hlalbator.fr.stICQ :
71548738
- Original Message -
From:
Christopher Long
To: [EMAIL PROTECTED]
Sent: Sunday, January 06, 2002 4:39
AM
Subject: [hlcoders] file reading
from...
gEngfuncs.COM_ParseFile takes tokens from
To: [EMAIL PROTECTED]
Sent: Sunday, January 06, 2002 8:33
PM
Subject: Re: [hlcoders] file reading
from...
I have a question... What does gEngfuncs.COM_ParseFile function do ?? I don't know how to use it
!
Actually, I parse a file character per character
with gEngfuncs.COM_L
: [hlcoders] file reading
from...
[CODE]
#include stdio.h
// not sure which one or both of these two includes you
need
#include stdlib.h
FILE *pFile = NULL;
void MyFunction( void )
{
pFile = fopen( "filename.txt",
"r" ); // "r" mea
I have a question... What does gEngfuncs.COM_ParseFile function do ?? I
don't know
how to use it !
Actually, I parse a file character per character with
gEngfuncs.COM_LoadFile...
My guess would be something very similar to char *COM_Parse (char *data)
found in utils\common\cmdlib.c of the
also which brings me to my next question then
if i am not mistaken fopen and fclose are old c syntax? then why not use
fstream.h and use
the file stream stuff? Is it the same or is one more reliable, safe and/or
speeder then
the other?
C file I/O functions are a more portable than C++
wrong.
- Original Message -
From:
Cortex
To: [EMAIL PROTECTED]
Sent: Sunday, January 06, 2002 8:33
PM
Subject: Re: [hlcoders] file reading
from...
I have a question... What does gEngfuncs.COM_ParseFile function do ?? I don't know how to
- Original Message -
From:
Cortex
To: [EMAIL PROTECTED]
Sent: Sunday, January 06, 2002 5:13
PM
Subject: Re: [hlcoders] file reading
from...
If I've good understand, it does like
:
char* pbuffer = ...;
pbuffer++; // = equal
13 matches
Mail list logo