- This wiki is out of date, use the continuation of this wiki instead
File
From FenixWiki
(Difference between revisions)
| Revision as of 12:41, 26 June 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Revision as of 13:24, 26 June 2007 (edit) (undo) Sandman (Talk | contribs) Next diff → |
||
| Line 4: | Line 4: | ||
| [[Category:files]] | [[Category:files]] | ||
| - | == Definition == | + | == Function == |
| + | === Definition === | ||
| - | === Function === | ||
| '''STRING''' file ( <'''STRING''' filename> ) | '''STRING''' file ( <'''STRING''' filename> ) | ||
| Line 19: | Line 19: | ||
| '''STRING''': The contents of the file. | '''STRING''': The contents of the file. | ||
| - | + | == Local variable == | |
| '''INT''' file | '''INT''' file | ||
| File contains the [[FileID]] of the file used to obtain the [[graphic]] indicated by the [[local variable]] [[GraphID]]. | File contains the [[FileID]] of the file used to obtain the [[graphic]] indicated by the [[local variable]] [[GraphID]]. | ||
| - | + | == Filetype == | |
| A file or FPG (''Fichero Para Graficós'', meaning "file for graphics" (''Is it really ''Fichero Para Graficós''?'')) is a file containing [[graphic]]s. It holds all information about the contained graphics: pixels, width, height, depth, name, etc. | A file or FPG (''Fichero Para Graficós'', meaning "file for graphics" (''Is it really ''Fichero Para Graficós''?'')) is a file containing [[graphic]]s. It holds all information about the contained graphics: pixels, width, height, depth, name, etc. | ||
Revision as of 13:24, 26 June 2007
Contents |
Function
Definition
STRING file ( <STRING filename> )
Returns the whole contents of a certain file.
Parameters
| STRING filename | - The filename of the file you wish to read from (including extension and possible path). |
Returns
STRING: The contents of the file.
Local variable
INT file
File contains the FileID of the file used to obtain the graphic indicated by the local variable GraphID.
Filetype
A file or FPG (Fichero Para Graficós, meaning "file for graphics" (Is it really Fichero Para Graficós?)) is a file containing graphics. It holds all information about the contained graphics: pixels, width, height, depth, name, etc.
Example
Program files;
Global
int file_id;
Begin
// Load FPG
file_id = load_fpg("example.fpg");
// Set locals for display of graph
file = file_id;
graph = 1;
x = y = 50;
Repeat
frame;
Until(key(_frame))
End
