read_file (const file[], line, text[], len, &txtLen);
The correct way to call this function would be to do this?
PHP Code:
Sources: Microsoft: Path to long error & Joel Spolsky: Back to Basics. |
Re: read_file (const file[], line, text[], len, &txtLen);
If you plain to read more than 1 line from a file, use rather :
fopen fgets // your loop with that native (consider feof) fclose Example here, but there are many examples on the forums. |
Re: read_file (const file[], line, text[], len, &txtLen);
PHP Code:
|
Re: read_file (const file[], line, text[], len, &txtLen);
See file.inc, it's new file natives, the same as in C. So better to handle file with them.
|
Re: read_file (const file[], line, text[], len, &txtLen);
Quote:
Quote:
Quote:
|
Re: read_file (const file[], line, text[], len, &txtLen);
arkshine means file.inc, one of the files inside the include folder (amxmodx/scripting/include)
The file contains the "new" file natives. They are just newer than read_file() and such, not really new anymore. You can also look up the functions on amxmodx.org: http://www.amxmodx.org/funcwiki.php?go=inc&id=3 |
Re: read_file (const file[], line, text[], len, &txtLen);
With my stuff it works..
If line = 0 (the end of the file) the while breaks.. Try it, it works |
Re: read_file (const file[], line, text[], len, &txtLen);
It works, but read_file is deprecated.
|
Re: read_file (const file[], line, text[], len, &txtLen);
Quote:
|
Re: read_file (const file[], line, text[], len, &txtLen);
Quote:
|
| All times are GMT -4. The time now is 04:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.