| Action | Keywords | GB | VB6 |
|---|---|---|---|
| Access or create a file | Open | v | v |
| Close files | Close, Reset | v | v |
| Flush data | Commit, Flush | v | |
| Control output appearance | Format, Print, Print, Spc, Tab | v | v |
| Width # | v | ||
| Copy/Move a file | FileCopy | v v |
v |
| Get information about a file | EOF, FileAttr, FileDateTime, FileLen, FreeFile, GetAttr, Loc, LOF, Seek | v | v |
| Get information about a file | _File, TextEOF, RecordLOF | v | |
| Get and set | RelSeek, SeekEnd | v | |
| Get and set date/time | FileDateTimeAccess, FileDateTimeCreate, SetFileDateTime, SetFileDateTimeAccess, SetFileDateTimeCreate, Touch | v | |
| Manage files | Dir, Kill, Lock, Unlock, Name | v | v |
| Delete files and folders | KillFile, DeleteFile | v | |
| Manage files | Files | v | |
| Read from a file | Get, Input, Input#, Input?, LineInput#, Record | v | v |
| Return length of a file | FileLen | v | v |
| Set or get file attributes | FileAttr, GetAttr, SetAttr | v | v |
| Set or get file attributes | FSATTR, FGATTR | v | |
| Set read-write position in a file | Seek | v v |
v |
| Write to a file | Print#, Put, , Record, Write | v | v |
| Block write/read to a file | Bput, Bget | v | |
| Block write/read a file | Bsave, Bload | v | |
| Read/write byte, word, or integer | Inp, Out | v | |
| Read/write string array | Recall, Store | ||
| Read/write to PORT (byte, word, or integer) | Inp(Port), Out(Port) | v | |
| VB compatible, 32-bits functions | FileLen%, Loc%, LOF%, Seek%, RelSeek% | v | v |
| Read/Write Variants | VarLoad, VarSave | v | v |
Note - All VB file functions operate with 32-bits integers, a value between 1 and 2,147,483,647 (equivalent to 2^31 - 1), inclusive.
All GFA-BASIC 32 file functions operate with 64-bit integers, by default. To use VB compatible commands use the functions with % postfix.
Crypting, Mime encoding, Checksum Keywords
Directories and Files Keywords
Variables and Constants Keywords
{Created by Sjouke Hamstra; Last updated: 23/08/2020 by James Gaite}