Raised This Month: $51 Target: $400
 12% 

fgets


Post New Thread Reply   
 
Thread Tools Display Modes
Carrion
Member
Join Date: Mar 2020
Old 04-01-2020 , 22:38   Re: fgets
Reply With Quote #11

Quote:
Originally Posted by Bugsy View Post
What do you mean? give me an example.
new FULL_FILE, DIR_FILE[128]
get_configsdir(DIR_FILE, charsmax(DIR_FILE))
format(DIR_FILE, charsmax(DIR_FILE), "%s/test.txt", DIR_FILE)
FULL_FILE = fopen(DIR_FILE, "r")
fgets(FULL_FILE, TEST_TXT, 4096)
fclose(FULL_FILE)

i got TEST_TXT line here
now i`m pasting it to other file

write_file(SOME_FILE, TEST_TXT)

does not pasting after space

Last edited by Carrion; 04-01-2020 at 22:39.
Carrion is offline
Carrion
Member
Join Date: Mar 2020
Old 04-01-2020 , 22:42   Re: fgets
Reply With Quote #12

i`ll try with ur code bbs
Carrion is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-01-2020 , 22:43   Re: fgets
Reply With Quote #13

I suggest using fputs() if you are looking to write contents of file A to file B.
__________________
Bugsy is offline
Carrion
Member
Join Date: Mar 2020
Old 04-01-2020 , 22:43   Re: fgets
Reply With Quote #14

Quote:
Originally Posted by Bugsy View Post
I suggest using fputs() if you are looking to write contents of file A to file B.
lets me check it <3 tnx
Carrion is offline
Reply



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 12:20.


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