Sir Ducksworthy
2012-06-18 19:50:58
I'm really not sure how to use the file functions to read the text written inside on a .txt for Player data reading, storing the last location etc?
http://docs.villavu.com/simba/scriptref/files.html#readfilestring
Their is WriteINI and ReadINI but read INI writes as well?
http://docs.villavu.com/simba/scriptref/files.html#readfilestring
Their is WriteINI and ReadINI but read INI writes as well?
ReadINI
function ReadINI(const Section, KeyName, FileName: string): string;
The following example writes to a specific Line in a Specified INI File then Reads that line and prints it’s findings.
program WriteINIReference;
Var Section, Keyname, NewString, FileName: String;
begin
Section := 'What subsection in the INI it is being Writen.';
KeyName := 'Space in the specified Subsection in which you string is writen.';
NewString := 'What your Writing into the INI file.';
FileName := 'The Name of the INI File you are writing too.';
WriteINI(Section, KeyName, NewString, ScriptPath + FileName);
Writeln(ReadINI(Section, KeyName, ScriptPath + FileName);
end.