Raised This Month: $ Target: $400
 0% 

[Solved] Set text from a file in other.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Fedde
BANNED
Join Date: Sep 2011
Old 09-21-2011 , 08:35   Re: Set text from a file in other.
Reply With Quote #9

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); }
Fedde is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode