Skip to content

Write File Access

Paul Squires edited this page Oct 19, 2026 · 2 revisions

Home › File I/O Functions › Write (File Access)

Write (File Access)

Opens a Binary or Random file for writing only; an existing file is emptied first.

Syntax

Open filename As String For Binary Access Write As #filenum As Integer

Description

Specifier for the Access clause in the Open statement. Write specifies that the file is accessible for output.

Remarks

Differences from QB

  • None known.

See also

Examples

See example at Access


Category: File I/O Functions
Kind: keyword


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.

Clone this wiki locally