Reading lines from file
#2

Read the file with fread() n-times, so you move the pointer down
pawn Code:
new
    rand = random(20),
    i = 0;

while (i < rand)
{
    fread(file, string);
    i++;
}
Reply


Messages In This Thread
Reading lines from file - by potato - 26.04.2010, 13:04
Re: Reading lines from file - by dice7 - 26.04.2010, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)