- This wiki is out of date, use the continuation of this wiki instead
File
From FenixWiki
(Difference between revisions)
| Revision as of 13:02, 14 November 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Revision as of 19:35, 14 November 2007 (edit) (undo) Sandman (Talk | contribs) m Next diff → |
||
| Line 5: | Line 5: | ||
| [[Category:functions]] | [[Category:functions]] | ||
| [[Category:files]] | [[Category:files]] | ||
| + | |||
| + | [[Functioncategory:Files|'''Up to Files Functions''']] | ||
| + | |||
| + | [[Local variables|'''Up to Local Variables''']] | ||
| + | |||
| + | [[Filetypes|'''Up to Filetypes''']] | ||
| + | |||
| + | ---- | ||
| + | |||
| == Function == | == Function == | ||
Revision as of 19:35, 14 November 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 Gráficos, meaning "file for graphics") is a file containing graphics. It holds all information about the contained graphics: pixels, width, height, depth, name, etc. In general, the name "file" is used for inside the program, when the FPG, called so when it's a file on the hard disk, is loaded from hard disk.
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
Used in example: load_fpg(), key(), x, y, graph
| Local variables | |
| • Angle • Bigbro • Father • File • Flags • Graph • Id • Region • Reserved • Resolution • Size • Size_x • Size_y • Smallbro • Son • X • Y • Z • | |
| Files Functions | |
| • Cd() • Chdir() • Fclose() • Feof() • Fgets() • File() • File_exists() • Flength() • Fopen() • Fputs() • Fread() • Fseek() • Ftell() • Fwrite() • Glob() • Load() • Mkdir() • Rmdir() • Save() • | |
| Filetypes | |
| • FBM • FGC • FH • FPG • FPL • INC • MAP • PAL • PNG • PRG • | |
Categories: General | Variables | Predefined | Local variables | Functions | Files
