File – Giavapps File

 

File

 

gf_file_exists(FileName) Returns true if the specified file exists or false otherwise.

FileName: a valid file name. This argument doesn’t support Unicode characters.

 

gf_file_size(FileName) Returns the size in bytes of the specified file.

FileName: a valid file name. This argument doesn’t support Unicode characters.

 

gf_file_copy(SourceFileName, DestinationFileName) Copies a source file to a specific location with the given file name.

SourceFileName: a valid file name. This argument doesn’t support Unicode characters.
DestinationFileName: a valid file name. This argument doesn’t support Unicode characters.

 

gf_file_delete(FileName) Deletes the specified file. If the file is successfully deleted, a zero value is returned. On failure, a nonzero value is returned.

FileName: a valid file name. This argument doesn’t support Unicode characters.

 

Code Examples

 

Checking If A File Exists

 

var filename = "file.txt";
if(gf_file_exists(filename))
{
show_message("FILE SIZE: "+string(gf_file_size(filename)));
}

 

I am Luigi Piscopo, also known as DJ GiDeejay / Producer / Remixer in the music world. I am a Producer with a lot of experience in photo editing, video editing, audio editing, graphic design, web design, programming and promotion.

 

Leave a Reply

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

*