Navigation:  Reference > Commands >

Write To A Non-TAS File

Print this Topic Previous pageReturn to chapter overviewNext page

 

This command will cause the program to write a specific number of characters to a non-TAS file at a certain location.

 

 

WRITE f/c/eRequired - The file handle/number value.  This is the same value as that received in the OPENV (Open File) command.  The file must have been previously opened.

 

START f/c/e The first byte position to write to.  The first character position in the file, for this command, is 1.  If no start value is given or the value is 0 the program will use the current internal file position value.  (When the file is opened the position value is automatically set to 1.)  This must be an R type field.

 

NCHR f/c/e The number of characters to write.  If this is not supplied the program will use the size value stated in the OPENV (Open File) command.

 

FROM fn/vNormally the characters read would be written from the buffer specified in the OPENV (Open File) command.  However, you may use this option to specify a different buffer field to be used during the execution of this command.

 

 

COMMENTS

After execution, the internal file position value will be set to the first character immediately following the characters written.  For example, if the start value is set at 10 and the number of characters to be written is 10, the position after the WRITE command will be 20.

 

NOTE:  If you are saving sequential records to a non-TAS file use the SAVE command instead.

 

 

SEE ALSO

OPENV, READ

 

 


Page url: http://www.cassoftware.com/tas/manual/writetoanon_tasfile.htm