[SOLVED]fputchar&fgetchar puzzling me
#1

Dose function "fp(g)utchar" support linux or mac.?
I have no chance to test cuz my pc's platform is WINDOWS,but server's platform is linux(freeBSD).

here's DracoBlue' fcopy code,he mentions that requires for WINDOWS,
pawn Код:
/**
 * Copies a file (Source file won't be deleted!)
 * @param oldname
 *     newname
 * @requires WINDOWS
 */

fcopy(oldname[],newname[]) {
 new File:ohnd,File:nhnd;
 if (!fexist(oldname)) return false;
 ohnd=fopen(oldname,io_read);
 nhnd=fopen(newname,io_write);
 new buf2[1];
 new i;
 for (i=flength(ohnd);i>0;i--) {
  fputchar(nhnd, fgetchar(ohnd, buf2[0],false),false);
 }
 fclose(ohnd);
 fclose(nhnd);
 return true;
}
#pragma unused fcopy
Anyone know about it?thx^^
Reply


Messages In This Thread
[SOLVED]fputchar&fgetchar puzzling me - by yezizhu - 05.04.2009, 03:37
Re: [HELP]fputchar&fgetchar puzzling me - by yezizhu - 05.04.2009, 09:16
Re: [HELP]fputchar&fgetchar puzzling me - by yezizhu - 05.04.2009, 13:28
Re: [HELP]fputchar&fgetchar puzzling me - by yezizhu - 07.04.2009, 06:54
Re: [HELP]fputchar&fgetchar puzzling me - by Nubotron - 07.04.2009, 07:48
Re: [HELP]fputchar&fgetchar puzzling me - by yezizhu - 08.04.2009, 16:08

Forum Jump:


Users browsing this thread: 3 Guest(s)