←Select platform

OpenFile Method (LeadFileStream)

Summary

Creates, opens or reopens the specified file.

Syntax

C#
VB
WinRT C#
C++
Public Function OpenFile( _ 
   ByVal fileName As String, _ 
   ByVal mode As Leadtools.LeadStreamMode, _ 
   ByVal access As Leadtools.LeadStreamAccess, _ 
   ByVal share As Leadtools.LeadStreamShare _ 
) As Boolean 
 function Leadtools.LeadFileStream.OpenFile(  
   fileName , 
   mode , 
   access , 
   share  
) 

Parameters

fileName
The relative or absolute path for the file that this LeadFileStream object will be associated with.

mode
A constant that determines how to open or create the file.

access
A constant that determines how the file can be accessed by this LeadFileStream object.

share
A constant that determines how the file will be shared by processes.

Return Value

true if the file is open; false, otherwise.

Remarks

Use the LeadFileStream interface to perform read and write operations.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly