For creating a StreamReader Object. Also opens a file or device for reading.
New StreamReader ( path )
Prerequisites
None
Parameters
path
A String that contains the path for the file or device to open. Local serial ports are devices named "/dev/com1", "/dev/com2", etc. Remote serial ports are named "/dev/comrxy" where "x" is the number of the remote device and "y" is the number of the serial port on the remote device. Temporary files may be placed on device "/ROMDISK" and permanent files may be placed on "/flash".
Remarks
This opens a file or device and associates it with a new StreamReader Object. If any error occurs, this constructor throws an Exception.
Examples
Dim com1 As New StreamReader("/dev/com1") ' Open serial port #1
Dim tfile As New StreamReader("/ROMDISK/test.tmp") ' Open temporary file
Dim pfile As New StreamReader("/flash/save.txt") ' Open permanent file
See Also