can i get help with cmds ?
#8

Quote:
Originally Posted by Brokenbreaken
Посмотреть сообщение
Its this.
Код:
fdeleteline(filename[], line)
{
  new count, string[256], File:file, File:temp;

  file= fopen(filename, io_read);
  temp = fopen("tmpfile.tmp", io_write);

  while (fread(file, string))
    if (++count != line)
      fwrite(temp, string);

  fclose(file);
  fclose(temp);

  file= fopen(filename, io_write);
  temp = fopen("tmpfile.tmp", io_read);

  while (fread(temp, string))
    fwrite(file, string);
    
  fclose(file);
  fclose(temp);
  fremove("tmpfile.tmp");
}
bro iam not understand can you tell me what to replace ?
Reply


Messages In This Thread
can i get help with cmds ? - by Joe_Goro - 22.02.2013, 11:03
Re: can i get help with cmds ? - by antonio112 - 22.02.2013, 11:18
Re: can i get help with cmds ? - by Joe_Goro - 22.02.2013, 11:25
Re: can i get help with cmds ? - by antonio112 - 22.02.2013, 11:36
Re: can i get help with cmds ? - by Joe_Goro - 22.02.2013, 16:55
Re: can i get help with cmds ? - by antonio112 - 22.02.2013, 17:48
Re: can i get help with cmds ? - by Brokenbreaken - 22.02.2013, 18:11
Re: can i get help with cmds ? - by Joe_Goro - 24.02.2013, 13:47

Forum Jump:


Users browsing this thread: 3 Guest(s)