Raised This Month: $ Target: $400
 0% 

Load ini [Lines]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-22-2010 , 23:29   Re: Load ini [Lines]
Reply With Quote #11

A little example wouldn't hurt.

Code:
new hFile = fopen("file.txt", "rt")

if(hFile)
{
    new szRow[24] // make sure you make this bigger for longer lines

    while(fgets(hFile, szRow, charsmax(szRow)))
    {
       // szRow contains current row's text
    }

    fclose(hFile)
}
__________________

Last edited by Hunter-Digital; 08-22-2010 at 23:31.
Hunter-Digital is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:57.


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