Storages & Files OpenFile
OpenFile method 

Opens existing file in the file system. Returns SFStream object for it.

Syntax:

Set strm = object.OpenFile(name [,SF_Flags])

Parameters:

name - the file specification for the file to open.

SF_Files - standard SF flags

Examples:

Dim main, dir
Set main = OpenObject("newObjects.utilctls.SFMain")
Set file = main.OpenFile("C:\afile.txt",&H40)
' Open a file in read only mode and no sharing limitations
' for the other applications/ojects
strLine = file.ReadText(cReadLineAny)
' Read a text line from the file

Applies to: SFMain object

See also: SFStorage.OpenStorage

Supported on:

Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later

 

newObjects Copyright 2001-2006 newObjects [ ]