Reading all lines from a file
#5

https://sampwiki.blast.hk/wiki/Fopen
https://sampwiki.blast.hk/wiki/Scripting...ions_Old#fread

pawn Код:
new File:handler=fopen("file.txt", io_read);
  new string[256], MyVal[256], idx;
  while(fread(handler, string))
  {
    printf("Line %d contains the following text: %s", idx+1, string);
  }
Reply


Messages In This Thread
Reading all lines from a file - by Striker_Moe - 18.12.2009, 13:32
Re: Reading all lines from a file - by Striker_Moe - 18.12.2009, 13:48
Re: Reading all lines from a file - by dice7 - 18.12.2009, 13:51
Re: Reading all lines from a file - by Striker_Moe - 18.12.2009, 13:52
Re: Reading all lines from a file - by dice7 - 18.12.2009, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)