LEADTOOLS (Leadtools assembly)

OpenFile Method (LeadFileStream)

Show in webframe







The relative or absolute path for the file that this LeadFileStream object will be associated with.
A constant that determines how to open or create the file.
A constant that determines how the file can be accessed by this LeadFileStream object.
A constant that determines how the file will be shared by processes.
Creates, opens or reopens the specified file.
Syntax
public bool OpenFile( 
   string fileName,
   LeadStreamMode mode,
   LeadStreamAccess access,
   LeadStreamShare share
)
'Declaration
 
Public Function OpenFile( _
   ByVal fileName As String, _
   ByVal mode As LeadStreamMode, _
   ByVal access As LeadStreamAccess, _
   ByVal share As LeadStreamShare _
) As Boolean
'Usage
 
Dim instance As LeadFileStream
Dim fileName As String
Dim mode As LeadStreamMode
Dim access As LeadStreamAccess
Dim share As LeadStreamShare
Dim value As Boolean
 
value = instance.OpenFile(fileName, mode, access, share)
public bool OpenFile( 
   string fileName,
   LeadStreamMode mode,
   LeadStreamAccess access,
   LeadStreamShare share
)

            

            
 function Leadtools.LeadFileStream.OpenFile( 
   fileName ,
   mode ,
   access ,
   share 
)
public:
bool OpenFile( 
   String^ fileName,
   LeadStreamMode mode,
   LeadStreamAccess access,
   LeadStreamShare 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

See Also

Reference

LeadFileStream Class
LeadFileStream Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.