Vision VTB-101 Guide de l'utilisateur Page 69

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 125
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 68
69
VTB USER GUIDE
.SeekRel(handle as int, offs as long) as char
Sets the offset from the current position of the file.
Parameters
handle Reference number of the file
offset Value of the offset in number of bytes
Example
err=disk.OpenRead(1,”\data\table.dat”) open the file
...
err=disk.Seek(1,200) set current position at 200 bytes
CHDIR
Changing of current directory. All successive functions without a complete path will refer to the current one.
Syntax
.Chdir(path as *char) as char
Parameters
path Name of the directory, it can contain also the complete path
Example
err=disk.Chdir(”programs”)
err=disk.OpenCreate(1,”file.txt”) ' create the file file.txt in the directory
' programs
MKDIR
Creates a new directory and returns error if it already exists.
Syntax
.Mkdir(path as *char) as char
Parameters
path Name of the directory, it can contain also the complete path
Example
err=disk.Mkdir(”\test\text”) ' create the directory text in \test
DELETE, ERASE, KILL
Delete a file or a directory. The same function can be called with three different names.
Syntax
.Delete(path as *char) as char
.Erase(path as *char) as char
.Kill(path as *char) as char
Parameters
path Name of the directory, it can contain also the complete path
Example
err=disk.kill(”\test\text”) ' delete the directory/file text in \test
RENAME
Renames a file or a directory. It returns error if the new name already exists.
Vue de la page 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 124 125

Commentaires sur ces manuels

Pas de commentaire