Rename a file is not working
#2

Here try this:

PHP код:
stock frename2(const path[], const newPath[])
{
    if(!
fexist(path)||fexist(newPath)) return 0;
    new 
File:fopen(path,io_read),buffer[512];
    
fread(f,buffer,sizeof(buffer));
    
fclose(f);
    
fremove(path);
    
fopen(newPath,io_write);
    
fwrite(f,buffer);
    
fclose(f);
    return 
1;

Reply


Messages In This Thread
Rename a file is not working - by antoinefr - 11.08.2016, 18:46
Re: Rename a file is not working - by Kaliber - 11.08.2016, 18:59

Forum Jump:


Users browsing this thread: 2 Guest(s)