When I try to print the contents of a text file to the console or to copy the contents to another file I get spaces between each row. How to remove those spaces?
PHP Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("test", "test", "test")
register_clcmd("ispraznirede", "killmeh")
}
public killmeh() {
new iFilePos;
new LineItem[64]
new iFileHandle = fopen( "omg.txt" , "r+t" );
iFilePos = 0;
while ( !feof( iFileHandle ) )
{
fgets(iFileHandle , LineItem , charsmax(LineItem));
iFilePos++;
if( contain( LineItem , "+") != -1 )
{
write_file( "omg2.txt" , LineItem, -1)
client_print(0, print_console, LineItem)
}
}
fclose(iFileHandle);
return PLUGIN_HANDLED;
}
The result: