Repository navigation
File I O Functions
Home › File I/O Functions › File I/O Functions
Statements and procedures for working with files and devices.
Description
These statements and procedures provide file and device i/o capabilities. So called file numbers can be bound to files or devices, which can be read or written to using formatted (text mode) or unformatted (binary mode) data. In binary mode, files and devices can be read from or written to in arbitrary locations. For multithreaded applications, files and devices can also be locked.
Opening Files or Devices
Procedures and other keywords that provide read or write access to a file or device.
Reading from and Writing to Files or Devices
Procedures that read and write data to an opened file or device.
File Position and other Info
Procedures that determine where reading and writing will take place within an opened file.
Opening Files or Devices
Gets an available file number that can be used to read or write from files or devices.
Binds a file number to a physical file to provide reading and writing capabilities.
Binds a file number to a communications port.
Binds a file number to the standard input and output streams.
Binds a file number to the standard input and error streams.
Binds a file number to a printer device.
Binds a file number to the input and output streams of a process.
Binds a file number directly to the console.
Unbinds a file number from a file or device.
Unbinds all active file numbers.
File I/O modes
Text data can be read from the file.
Text data can be written to the file.
Text data is added to the end of a file when output.
Arbitrary data can be read from or written to the file.
Blocks of data of certain size can be read from and written to the file.
File access privileges
An overview of file access privileges.
Binary data can only be read from the file.
Binary data can only be written to the file.
Binary data can be read from and written to the file.
Character encoding
Specifies the character encoding of a file.
Reading from and Writing to Files or Devices
Reads a list of values from a file or device.
Writes a list of values to a file or device.
Reads a number of characters from a file or device.
Reads a number of wide characters from a file or device.
Reads a line of text from a file or device.
Print # ? # (Shortcut For 'Print #')
Writes text data to a file or device.
Writes arbitrary data to a file or device.
Reads arbitrary data from a file or device.
File Position and other Info
Gets the length (in bytes) of a file.
Gets the file position of the last read or write operation.
Returns true if all of the data has been read from a file.
Sets the file position of the next read or write operation.
Gets the file position of the next read or write operation.
Restricts read or write access to a file or portion of a file.
Remove read or write restrictions from a previous Lock command.
Category: File I/O Functions
Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- Generics
- Interfaces
- For Each
- Iterators
- Tuples
- Array Results
- Defer
- Lambdas
- Block Strings
- Partial Types
- String Slices
- Embed
- Typed Variadics
- C Header Import
- Foreign Library Linking
- UString
- Fixed-Width Types
- Nullptr
- String Library
- Format
- Array
- Map
- Set
- LinkedList
- OrderedMap
- OrderedSet
- Sorting
- Optional
- Result
- Smart Pointers
- Date and Time (Chrono)
- Filesystem
- File Streams
- Config (INI and TOML)
- Codec
- Hash
- UUID
- OS
- Process
- Net
- HTTP and TLS
- Math Library
- Finance
- Logging
- Terminal TUI Library
- PsControls
- tkControls
- sys/win
- Goroutines and Channels
- LLVM Backend
- tiko build
- TIKO_COMPILER
- Variable Declarations
- Standard Data Types
- User Defined Types
- Procedures
- Operators
- Control Flow Statements
- Converting Data Types
- Array Functions
- String Functions
- Mathematical Functions
- Bit Manipulation
- Date and Time Functions
- File I/O Functions
- Console Functions
- User Input (Runtime Library)
- User Input Functions (Graphics Library)
- Screen Functions
- 2D Drawing Functions
- Graphics Library Reference
- Graphics Keyword List
- Memory Functions
- Threading Support Functions
- Error Handling Functions
- Operating System Functions
- Preprocessor
- Intrinsic Defines
- Miscellaneous Keywords
- Modularizing