Yes I tried that method,but when I test it,the A file gets copied a lot of times.
Code:
public cmdFloatTask()
{
new Path[256];
get_configsdir(Path,charsmax(Path));
format(Path,charsmax(Path),"%s/demos.txt",Path);
new File[256];
get_configsdir(File,charsmax(File));
format(File,charsmax(File),"%s/demoz.txt",File);
new Data[1024];
new f = fopen(Path,"rt");
new ff = fopen(File,"at");
while(!feof(f) && !feof(ff))
{
fgets(f,Data,charsmax(Data));
fputs(ff,Data);
}
fclose(f);
fclose(ff);
}