Name
FileOpen Procedure — Microsoft.VisualBasic.FileSystem
Synopsis
FileOpen(filenumber, filename, mode, access, share, _
recordlength
)
filenumber
required; IntegerAn available file number.
filename
required; StringThe name of the file to open, along with an optional path.
mode
optional;OpenMode
enumThe file-access mode. Options are:
OpenMode.Append
,OpenMode.Binary
,OpenMode.Input
,OpenMode.Output
, orOpenMode.Random
(the default value).access
optional;OpenAccess
enumSpecifies the allowable operations by the current process. Options are:
OpenAccess.Default
,OpenAccess.Read
,OpenAccess.ReadWrite
(the default value), orOpenAccess.Write
.share
optional;OpenShare
enumSpecifies the allowable operations by other processes. Options are:
OpenShare.Shared
(the default value),OpenShare.LockRead
,OpenShare.
LockWrite
, orOpenShare.LockreadWrite
.recordlength
optional; Integer (at most, 32767)The length of the record (for random access) or of the I/O buffer (for sequential access).
Description
Opens a disk file for reading and/or writing.
Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.