Raised This Month: $ Target: $400
 0% 

Solved Manipulate string in file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-15-2020 , 23:19   Re: Manipulate string in file
Reply With Quote #7

Calling it an "invisible" space is redundant because it's just the regular space character (0x20), what you get when you press your space bar.

When I use:

PHP Code:
write_file("test.txt""^r"2
on this file:
Code:
hello
world
good
bye
I get:
Code:
hello
world

bye

Also, the fact that you're trying to edit a file with write_file() while that same file is open with fopen() is a problem in general (I'm not sure if AMX Mod X has any safe guards in place to prevent bad behavior when you do this).
__________________
fysiks 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 14:13.


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