QuickOPC User's Guide and Reference
FromFile Method (_StreamLoader)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.IO.ComTypes Namespace > _StreamLoader Interface : FromFile Method
The path and name of the file to load the value from.
Loads a value from a file.
Syntax
'Declaration
 
<NotNullAttribute()>
Function FromFile( _
   ByVal filePathAndName As String _
) As ValueResult
'Usage
 
Dim instance As _StreamLoader
Dim filePathAndName As String
Dim value As ValueResult
 
value = instance.FromFile(filePathAndName)
[NotNull()]
ValueResult FromFile( 
   string filePathAndName
)
[NotNull()]
ValueResult^ FromFile( 
   String^ filePathAndName
) 

Parameters

filePathAndName
The path and name of the file to load the value from.

Return Value

Returns value result with the value loaded.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also