Tags:
view all tags
---+ .STREAM READ _This subroutine is called to read a file stream._ <br />%TOC% ---++ Usage: <pre> PASS <read_buffer> SHARE? Y PASS <stream_name> SHARE? N PASS <read_length> SHARE? Y GOSUB --- .STREAM READ * check for errors IF --- .STREAM OPEN NE </pre> ---++ Description: This subroutine is called to read a file stream previously opened for READ access via [[0LASubrStreamOpen][.STREAM OPEN]]. The first two parameters are required, and the subroutine will CANCEL if they are are not all received. The <read_length> parameter is optional. <read_buffer> identifies the variable into which the data will be read (Required). This subroutine can read lines up to a maximum of 32000 characters. This must be passed SHARED to return any data. <stream_name> is the name of the previously opened stream (Required). <read_length> is the number of bytes to read (optional). If not passed, or blank/zero is passed, it will read up until the line termination character specified in [[0LASubrStreamOpen][.STREAM OPEN]]. If passed shared, it will return the number of characters actually read, however, you should set it back to zero before the next GOSUB --- .STREAM READ, otherwise this subroutine will only read that number of characters. This subroutine sets a result value in the corresponding results Token field. The 'Data was truncated' result means the <read_buffer> field you passed was not large enough to contain all the data that was read. ---++ Comments: _Read what other users have said about this page or add your own comments._ <br />%COMMENT% -- Main.JeanNeron - 2012-01-23
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r9
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2012-01-23
-
JeanNeron
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Edit
Attach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback