<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css">
<title>
Gambas Documentation - File Management
</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../help+en"><img class="flag" alt="Home" border="0" src="../../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../cat+en">Up</a>&nbsp;
<a href="event+en">Previous</a>&nbsp;
<a href="hash+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
File Management
</h1>
<table class="table" border="0" bordercolor="#000000" cellpadding="4" cellspacing="0">
<tr class="dark"><td valign="top">
<tt><a href="../name/gb.existfile+en">GB.ExistFile</a></tt>
</td><td valign="top">
Returns if a file exists.
</td></tr>
<tr><td valign="top">
<tt><a href="../name/gb.filename+en">GB.FileName</a></tt>
</td><td valign="top">
Converts a <a href="../../def/utf8+en">UTF-8</a> charset encoded file name into a system charset encoded file name.
</td></tr>
<tr class="dark"><td valign="top">
<tt><a href="../name/gb.gettempdir+en">GB.GetTempDir</a></tt>
</td><td valign="top">
Returns the directory where temporary files are stored.
</td></tr>
<tr><td valign="top">
<tt><a href="../name/gb.loadfile+en">GB.LoadFile</a></tt>
</td><td valign="top">
Loads a file in memory.
</td></tr>
<tr class="dark"><td valign="top">
<tt><a href="../name/gb.realfilename+en">GB.RealFileName</a></tt>
</td><td valign="top">
Creates and returns a temporary real file for files located in <a href="../../def/gambas+en">Gambas</a> executables.
</td></tr>
<tr><td valign="top">
<tt><a href="../name/gb.releasefile+en">GB.ReleaseFile</a></tt>
</td><td valign="top">
Release the memory used by a loaded file.
</td></tr>
</table>
<p>
<h2>Overview</h2>
<p>
These function allow you, among other things, to load a file from the current component or project,
and deal with different charsets between the one used by <a href="../../def/gambas+en">Gambas</a> (<a href="../../def/utf8+en">UTF-8</a>) and the one
used by the system.

</div>
</body>
</html>

