Support for cleaning ini file entries

Forums: 

Hi,

I just noticed there is no cleaner for VLC media player available, so I thought about making one. Then I found the reason why there might be none: VLC stores the list of recent items in an ini file. The file looks like this:

--------------------------------------------------------------------------------------------------
[General]
IsFirstRun=0
filedialog-path=C:\\Users\\Klaus\\Videos\\Bernie & Ert
updatedate=@Variant(\0\0\0\xe\0%w\xa0)

[RecentsMRL]
list=C:\\Users\\Klaus\\Videos\\Bernie & Ert\\fnn_eub_01.mpg,C:\\Users\\Klaus\\Videos\\Bernie & Ert\\fnn_eub_02.mpg

[FullScreen]
pos=@Point(651 978)
screen=@Rect(0 0 1680 1050)

[MainWindow]
pl-dock-status=true
adv-controls=0
bgSize=@Size(1676 886)
playlistSize=@Size(-1 -1)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\x1P\0\0\x1h\0\0\a\xeb\0\0\x5i\0\0\x1X\0\0\x1\x86\0\0\a\xe3\0\0\x5\x61\0\0\0\0\0\0)

[Update]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\x2\xaa\0\0\x1\x45\0\0\x3\xe5\0\0\x2\x96\0\0\x2\xb2\0\0\x1\x63\0\0\x3\xdd\0\0\x2\x8e\0\0\0\0\0\0)
--------------------------------------------------------------------------------------------------

Two things need to be cleared: the last location of the file dialog and the complete RecentMRL section. Is there a built-in support for ini files? Or for parsing files in general? Parsing files in general would be the mightier tool, but handling ini files would be a good start.

For now I will delete the whole file as VLC creates a new one when starting. Maybe this is even the better way to do it.

Best regards,
Klaus