P
pkirk25
while (1)
{
fgets(temp_string, MAXLEN, auctioneer_lua);
/* check that we do ahve a valid data input file */
if (strstr(temp_string, "AuctioneerHistoryDB"))
{
/* this is a valid file */
printf("%s\n", temp_string);
j = items_list(auctioneer_lua);
// j = read_auctioneer_lua(source_file_name);
break;
}
/* lots of other stuff */
}
This test works fine BUT it passes on the pointer with the line where
"AuctioneerHistoryDB" is found.
Other than searching for a toekn at the top of the file, is ther a way
to reset the pointer to the top of the file without closing and
re-opening it?
{
fgets(temp_string, MAXLEN, auctioneer_lua);
/* check that we do ahve a valid data input file */
if (strstr(temp_string, "AuctioneerHistoryDB"))
{
/* this is a valid file */
printf("%s\n", temp_string);
j = items_list(auctioneer_lua);
// j = read_auctioneer_lua(source_file_name);
break;
}
/* lots of other stuff */
}
This test works fine BUT it passes on the pointer with the line where
"AuctioneerHistoryDB" is found.
Other than searching for a toekn at the top of the file, is ther a way
to reset the pointer to the top of the file without closing and
re-opening it?