Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
Language Index
Language Overviews
Arithmetical Functions
Arithmetic Operators
Array Declaration
Assignment Operators
Assignments
Binary Data Representation
Bits Manipulation Functions
Character Test Functions
Comparison methods
Complex numbers
Constant Declaration
Constant Expression
Conversion Functions
Datatype Functions
Datatypes
Date & Time Functions
Enumeration declaration
Error Management
Event Loop
Event Management
Events declaration
Expressions
External Function Management
File & Directory Functions
File & Directory Paths
File mode syntax
Floating Point Numbers
Formatting functions
Gambas Object Model
Global Special Event Handlers
Integer numbers
Intrinsic Functions
Language Constants
Localization and Translation Functions
Local Variable Declaration
Logarithms & Exponentials Functions
Logical Operators
Loop Control Structures
Method Declaration
Miscellaneous Control Structures
Miscellaneous Functions
Native Arrays
Native Container Classes
Object & Class Management
Operator Evaluation Order
Predefined Constants
Process Management
Property Declaration
Random Numbers Functions
Special Methods
Stream & Input/Output functions
String Functions
String Operators
Structure declaration
Test Control Structures & Functions
Trigonometric Functions
User-defined formats
Using reserved keywords as identifiers
Variable Declaration
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

Stream & Input/Output functions

CLOSE Closes a stream
Eof Returns TRUE if the end of the file has been reached.
ERROR Prints expressions to the error standard output.
ERROR TO Redirects the standard error output.
FLUSH Flushes the output of a buffered stream.
INPUT Reads strings from a text stream and converts them into values.
INPUT FROM Redirects the standard input.
LINE INPUT Reads lines from a text stream.
LOCK Locks a file path.
Lof Returns the length of a stream.
OPEN Opens a file for reading or writing and creates a stream for it.
OPEN MEMORY Creates a stream that allows to directly read binary data from memory, or write binary data to memory.
OPEN PIPE Opens a named pipe for reading or writing and creates a stream for it.
OPEN STRING Opens a string for reading or writing and creates a stream for it.
Since 3.5
OUTPUT TO Redirects the standard output.
PEEK Peeks bytes from a stream.
Since 3.15
PRINT Prints expressions to a stream.
READ Reads binary data or bytes from a stream.
SEEK Changes the position of the stream file pointer.
Seek Gets the position of the stream file pointer.
UNLOCK Unlocks an opened stream.
WRITE Writes binary data or bytes to a stream.

See also