This wiki is out of date, use the continuation of this wiki instead

File

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 12:41, 26 June 2007 (edit)
Sandman (Talk | contribs)
m
← Previous diff
Current revision (18:52, 3 April 2008) (edit) (undo)
Sandman (Talk | contribs)
m
 
(9 intermediate revisions not shown.)
Line 1: Line 1:
[[Category:general]] [[Category:general]]
-[[Category:local variable]]+[[category:variables]]
 +[[category:predefined]]
 +[[Category:local variables]]
[[Category:functions]] [[Category:functions]]
[[Category:files]] [[Category:files]]
-== Definition ==+[[Functioncategory:Files|'''Up to Files Functions''']]
 + 
 +[[Local variables|'''Up to Local Variables''']]
 + 
 +[[Filetypes|'''Up to Filetypes''']]
 + 
 +----
 + 
 + 
 +== Function ==
 +=== Definition ===
-=== Function === 
'''STRING''' file ( <'''STRING''' filename> ) '''STRING''' file ( <'''STRING''' filename> )
Line 19: Line 30:
'''STRING''': The contents of the file. '''STRING''': The contents of the file.
-=== Local variable ===+== Local variable ==
-'''INT''' file+'''INT''' file = 0
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 ===+== 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 Gráficos'', meaning "file for graphics") is a file containing [[graphic]]s. It holds all information about the contained graphics: [[pixel]]s, [[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 == == Example ==
Line 48: Line 60:
End End
</pre> </pre>
-Used in example: [[load_fpg]](), [[key]](), [[graph]]+Used in example: [[load_fpg]](), [[key]](), [[x]], [[y]], [[graph]]
 + 
 +{{Locals}}
 +{{Funcbox
 + | category = Files
 +}}
 +{{Filetypes}}

Current revision

Up to Files Functions

Up to Local Variables

Up to Filetypes



Contents

[edit] Function

[edit] Definition

STRING file ( <STRING filename> )

Returns the whole contents of a certain file.

[edit] Parameters

STRING filename - The filename of the file you wish to read from (including extension and possible path).

[edit] Returns

STRING: The contents of the file.

[edit] Local variable

INT file = 0

File contains the FileID of the file used to obtain the graphic indicated by the local variable GraphID.

[edit] 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.

[edit] 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
AngleBigbroFatherFileFlagsGraphIdRegionReservedResolutionSizeSize_xSize_ySmallbroSonXYZ
Files Functions
Cd() • Chdir() • Fclose() • Feof() • Fgets() • File() • File_exists() • Flength() • Fopen() • Fputs() • Fread() • Fseek() • Ftell() • Fwrite() • Glob() • Load() • Mkdir() • Rmdir() • Save() •
Filetypes
FBMFGCFHFPGFPLINCMAPPALPNGPRG
Personal tools