Quote:
Originally Posted by Guppy488
so my plugin does not need "open_dir or close_dir" ? and i can't seem to make it work,when i type /data ,it shows data.txt only..
|
Explain to us what file(s) you want to manipulate and we can help you.
Quote:
Originally Posted by Kreation
But you must open a directory to open a file, sir.
|
Not if you know the location and name of the file. For example, motd.txt.
PHP Code:
new szBuffer[ 128 ] , iFile = fopen( "motd.txt" , "rt" );
while( !feof( iFile ) && fgets( iFile , szBuffer , charsmax( szBuffer ) ) )
server_print( szBuffer );
fclose( iFile );
__________________