Code:
new szOutput[32], iLen
read_file(szFilePath, 0, szOutput, 31, iLen)
strtok(szOutput, szOutput, 31, g_szHostname, 31, '=', 1)
remove_quotes(g_szHostname)
read_file(szFilePath, 1, szOutput, 31, iLen)
strtok(szOutput, szOutput, 31, g_szUsername, 31, '=', 1)
remove_quotes(g_szUsername)
read_file(szFilePath, 2, szOutput, 31, iLen)
strtok(szOutput, szOutput, 31, g_szPassword, 31, '=', 1)
remove_quotes(g_szPassword)
read_file(szFilePath, 3, szOutput, 31, iLen)
strtok(szOutput, szOutput, 31, g_szDatabase, 23, '=', 1)
remove_quotes(g_szDatabase)
The tuple and everything worked absolutely fine when I was setting it manually. When I started trying to read these settings from a file, it stopped working.