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:
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).
__________________