PHP Code:
new szMapName[32], szFilePath[128]
get_mapname(szMapName, charsmax(szMapName))
formatex(szFilePath, charsmax(szFilePath), "addons/sev09/maps/%s.cfg", szMapName)
new f = fopen(szFilePath, "rt")
if(f)
{
// File exists and is open to start reading.
new szData[64]
while( !feof(f) )
{
fgets(szData, charsmax(szData))
trim(szData)
// szData contains a line from the file.
// Do something with it :).
}
fclose(f)
}
Here ya go

.
__________________