View Single Post
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-05-2019 , 09:21   Re: INI File Reader/Writer AMXX 1.9
Reply With Quote #8

Actually, empty lines are equivalent to one (1) char. fgets() will only return 0 when reach the end of the file or if the file is totally empty. Well, that's what I noticed in the tests.

Code:
            // fgets=1 [Section]   // fgets=10 key=value   // fgets=10             // fgets=1 [Section]   // fgets=10 key=value   // fgets=10             // fgets=1 [Section]   // fgets=10 key=value   // fgets=10             // fgets=1             // fgets=1 [Section]   // fgets=10 key=value   // fgets=10             // fgets=0
__________________









Last edited by CrazY.; 04-05-2019 at 09:28.
CrazY. is offline