AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   read_file problem (https://forums.alliedmods.net/showthread.php?t=188629)

jimaway 06-28-2012 15:24

read_file problem
 
if theres an empty line in the end of file, read_file will read it as the previous line, why is that?

<VeCo> 06-28-2012 15:34

Re: read_file problem
 
Use feof/fgets, they work better.

fysiks 06-28-2012 18:47

Re: read_file problem
 
read_file() is an old function and is not efficient. Use fopen(), feof(), and fgets().


All times are GMT -4. The time now is 06:18.

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