Getting Info from .CFG file
#2

just

pawn Код:
new File: gFile = fopen("filename.cfg", io_read);
if(gFile) {
    new line = 1, tmp[128];
    while(fread(gFile, tmp)) ++line;
    fclose(gFile);
}
line would contain your wanted number
Reply


Messages In This Thread
Getting Info from .CFG file - by Alvord - 11.05.2011, 22:14
AW: Getting Info from .CFG file - by Nero_3D - 11.05.2011, 22:30
Re: Getting Info from .CFG file - by Alvord - 11.05.2011, 22:35
Re: Getting Info from .CFG file - by Alvord - 12.05.2011, 16:36
Re: Getting Info from .CFG file - by SchurmanCQC - 12.05.2011, 16:40

Forum Jump:


Users browsing this thread: 2 Guest(s)