nst
02-13-2006, 03:45 PM
Hi everyone,
I 'm trying to build a small app that should read data from a stock exchange text file. These look like the following
AAAP 04/02/2005 8.92 - 100 8.92 8.92 892.00 1 8.92
ABAX 04/02/2005 4.82 - 31839 4.84 4.74 153253.68 84 4.80
Do you suggest to use fgetc and read every single character after another or fread and take whole strings.
I think of using a sort of
while($one_char!="\n")
in order to read the next line. Does that seem OK to you?
Thanks.
I 'm trying to build a small app that should read data from a stock exchange text file. These look like the following
AAAP 04/02/2005 8.92 - 100 8.92 8.92 892.00 1 8.92
ABAX 04/02/2005 4.82 - 31839 4.84 4.74 153253.68 84 4.80
Do you suggest to use fgetc and read every single character after another or fread and take whole strings.
I think of using a sort of
while($one_char!="\n")
in order to read the next line. Does that seem OK to you?
Thanks.