Skip to content

Reference

OpcFile Class

Provides static (Shared in Visual Basic) methods for opening of a single file and aids in the creation of OpcFileStream objects.

Reference

OpcFile Class ​

static

Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcFile Members
Also in
Opc.UaFx.Client

Provides static (Shared in Visual Basic) methods for opening of a single file and aids in the creation of OpcFileStream objects.

Syntax ​

csharp
public static class OpcFile
vbnet
Public Module OpcFile

Inheritance ​

Object → OpcFile

Methods ​

NameDescription
AppendAllLinesstatic · 3 overloadsAppends lines to a file maintained by the file node specified by fileNodeId and then closes the file.
AppendAllTextstatic · 2 overloadsAppends the specified string to the file maintained by the file node specified by fileNodeId and then closes the file.
AppendTextstatic · 2 overloadsCreates a StreamWriter that appends UTF8 encoded text to the file maintained by the file node specified by fileNodeId.
OpenstaticOpens a file in the specified mode.
OpenReadstaticCreates a read-only OpcFileStream.
OpenTextstaticCreates a StreamReader with UTF8 encoding.
OpenWritestaticCreates a write-only OpcFileStream.
ReadAllBytesstaticOpens a binary file node, reads the contents of the file node into a byte array, and then closes the file node.
ReadAllLinesstatic · 2 overloadsOpens a text file node, reads all lines of the file maintained by the file node, and then closes the file node.
ReadAllTextstatic · 2 overloadsOpens a file node, reads all lines of the file maintained by the file node, and then closes the file node.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59