Kategorie: System
Ab Engineversion: 3.0 OC
FileWrite
Beschreibung
Adds a text string to an open file. Currently, this function is only used to write to the Objects.c file in the SaveScenarioObjects callback defined in System.ocg/SaveScenario.c (See Scenario objects saving).
Syntax
bool FileWrite(int fid, string data);
Parameter
- fid:
- ID of file to be written to.
- data:
- String to be written to the file.
Beispiel
global func SaveScenarioObjects(f) { FileWrite(f, "func InitializeObjects() { return true; }\n"); }
When the user presses "Save scenario" in the editor, he won't save any objects.
Siehe auch: Scenario objects saving