Share via


AsciiIo.inRecordLength Method

Sets or retrieves the record length for an input file.

Syntax

public int inRecordLength([int value])

Run On

Called

Parameters

  • value
    Type: int
    The value to assign as the record length for the input file.

Return Value

Type: int
The record length for the input file.

Remarks

For files that have a fixed-length format, use the inRecordLength property to guarantee that no more than the specified number of characters is read for each record. If the record format is overruled by a specified inRecordDelimiter property value (in other words, if the inRecordDelimiter value is met before the fixed length is read), the record is accepted, and no more data is read. To make sure that a fixed number of characters is read, set the inRecordDelimiter property value to an empty string. When no inRecordDelimiter property value is found, the inRecordDelimiter property value is the maximum limit of characters to read. Set the inRecordDelimiter property value to 0 (zero) to disable the check of the record length.

See Also

Reference

AsciiIo Class