[Include] [INC] SII 2.0.6 - Fast cache based INI Reader/Writer
#5

Quote:
Originally Posted by [DRuG
Slick ]
Sorry I should have explained it better.

When INI_Open is called, the file is parsed to memory. Now lets say you use INI_WriteString to add some data (a line), it will write to memory, not the file. Only when you call INI_Save will everything be written back to the original file. Then lastly, you would call INI_Close which frees up memory ready for opening again (doesn't touch the file). So the only time the physical file is accessed is during INI_Open and INI_Save.

Hope that helped

EDIT: I redone the first post with a tutorial demonstrating a basic accounts system
I guess you can also open every file on startup and write during the game to the memory, also reading from it. And when the game ends, it writes everything.

With game I mean calling OnGameModeInit and OnGameModeExit.
Reply


Messages In This Thread
[INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 18.12.2008, 02:45
Re: Slick's INI Implementation 2.0.6 - Very fast cache based INI Reader/Writer - by Jason_Gregory - 18.12.2008, 03:05
Re: SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 18.12.2008, 22:20
Re: SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 18.12.2008, 23:00
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Antironix - 19.12.2008, 10:43
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Mazza101 - 23.12.2008, 17:48
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by KillFrenzy - 24.12.2008, 00:32
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Mazza101 - 24.12.2008, 00:40
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by KillFrenzy - 24.12.2008, 01:30
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Mazza101 - 24.12.2008, 02:11
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 24.12.2008, 02:13
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MX_Master - 01.05.2009, 07:36
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Goldkiller - 01.05.2009, 10:04
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 03.05.2009, 05:31
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MX_Master - 04.05.2009, 17:13
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Weirdosport - 04.05.2009, 17:25
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MX_Master - 19.05.2009, 18:11
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by BlackFoX - 21.05.2009, 17:02
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Trooper[Y] - 23.07.2009, 13:04
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by yezizhu - 23.07.2009, 13:19
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Trooper[Y] - 23.07.2009, 13:39
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Chriss110 - 03.10.2009, 08:55
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [RSD]Jan - 25.10.2009, 11:07
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by aXE5LOk - 14.11.2009, 22:21
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Trooper[Y] - 14.11.2009, 22:23
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Vincenzo77 - 17.01.2010, 10:05
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 07.04.2010, 11:12
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MahmutBey - 07.04.2010, 20:44
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by cloud9 - 08.04.2010, 02:52
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by kurta999 - 16.07.2010, 20:21
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by AvicennaRabama - 17.06.2015, 14:01
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Yashas - 17.06.2015, 14:50
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by AndreiWow - 05.09.2015, 15:41
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by SpikY_ - 05.09.2015, 16:13
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by betola - 02.07.2017, 16:07
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by NaS - 02.07.2017, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)