thanks ahead of time !!!!
bill
Type: Posts; User: billh
thanks ahead of time !!!!
bill
this is what logon.dat looks like
// LOGON.DAT
//
// terminal no. user id time (in seconds)
LOGON 7 3 21
fgets() works and the data prints out exactly like it is in the .dat file.
Now, i need to parse the buffered string.
i tried using some code i got from a search on this board,
(seps[],...
i got fgets to work and it displays the .dat file perfectly but,
i need to have lines that begin with // to be skipped.
i also need to tokenize the buffer[] (is strtok() as bad as people...
I am thinking of using
fscans(??)
to get a line at a time but how do i "tokenize" that string ??
thanks for your time and understanding,
bill