Trocar nome
#4

pawn Код:
static
       zFile[512],
       File:Source
;

RenameFile(nFile,tFile[])
{
       Source = fopen(nFile, io_read);
       fblockread(Source,zFile,sizeof zFile);
       fclose(Source);

       fremove(nFile);

       Source = fopen(tFile, io_write);
       fblockwrite(Source,zFile,sizeof zFile);
       fclose(Source);
       return true;
}
Isto Renomeia um arquivo.

Primeira vez que uso fblocks,portanto posso estar errado.
Me corrijam.
Reply


Messages In This Thread
Trocar nome - by MarcBlack - 06.01.2011, 22:12
Re: Trocar nome - by Dj_Paradox - 07.01.2011, 01:20
Re: Trocar nome - by MarcBlack - 08.01.2011, 01:06
Respuesta: Trocar nome - by ipsBruno - 08.01.2011, 01:55
Re: Trocar nome - by MarcBlack - 12.01.2011, 12:09
Re: Trocar nome - by Dj_Paradox - 04.02.2011, 15:22
Re: Trocar nome - by zSuYaNw - 04.02.2011, 18:13

Forum Jump:


Users browsing this thread: 2 Guest(s)