How do I return the first line
PHP Code:
public GetData(){
new Handle:matchFile = OpenFile(g_sFilePath, "r");
new String:lineBuffer[128];
// Reads an opened file one line at a time into specified buffer
ReadFileLine(matchFile, lineBuffer, sizeof(lineBuffer));
// Print out contents of first line on the server
PrintToServer("First line in file:\n%s", lineBuffer);
CloseHandle(matchFile);
return lineBuffer;
}
File:- data.ini
PHP Code:
first text line to save in a variable
__________________