[Tutorial] Creating a File System that is Effcient
#7

This can actually become even more effective if you know in which order the lines are written. If you're 100% certain your file will look something like:
Code:
user=nakedhoe13 (useless to have something like this in a file tho)
pass=unknown
admin=-1
money=2020
You could just immediately take the values in order.

Edit: Also, this code:
pawn Code:
if(fexist(file)) // Check to see if our file exist
    {
        fremove(file); // Delete our old file, so we can make the new one.
    }
   
    handle = fopen(file, io_append); // Open our handle to append
Would just be:
pawn Code:
handle = fopen(file, io_write);
The main problem I've got with files though is that it's somewhat hard to edit a point in a file (hence why I'm mainly using MySQL). Good tut, nevertheless.
Reply


Messages In This Thread
Creating a File System that is Effcient - by AustinJ - 27.03.2012, 04:59
Re: Creating a File System that is Effcient - by Jantjuh - 27.03.2012, 05:16
Re: Creating a File System that is Effcient - by AustinJ - 27.03.2012, 05:20
Re: Creating a File System that is Effcient - by T0pAz - 27.03.2012, 05:42
Re: Creating a File System that is Effcient - by AustinJ - 27.03.2012, 05:49
Re: Creating a File System that is Effcient - by TheLazySloth - 27.03.2012, 08:25
Re: Creating a File System that is Effcient - by Hiddos - 27.03.2012, 12:29
Re: Creating a File System that is Effcient - by Sting. - 27.03.2012, 14:04
Re: Creating a File System that is Effcient - by TheLazySloth - 06.04.2012, 07:01
Re: Creating a File System that is Effcient - by Jonny5 - 06.04.2012, 14:59

Forum Jump:


Users browsing this thread: 1 Guest(s)