Initializing help system before first use

XPRBreadarrline Method (StreamReader, Int32, String, Object[], Int32)

Read a line of an array from a data file.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 44.01.04
Syntax
C#
public int XPRBreadarrline(
	StreamReader fileStreamIn,
	int maxlen,
	string format,
	out Object[] output,
	int numData
)
VB
Public Function XPRBreadarrline ( 
	fileStreamIn As StreamReader,
	maxlen As Integer,
	format As String,
	<OutAttribute> ByRef output As Object(),
	numData As Integer
) As Integer

Parameters

fileStreamIn
Type:  System.IO.StreamReader
The open StreamReader to read the data from.
maxlen
Type:  System.Int32
The maximum length of data to read.
format
Type:  System.String
The format to read the data in. This is a string made up of the following formats, seperated by any seperating characters. The format must be exact with respect to spacing (if there are 0+ spaces between the entries then a space " " must be included in the format string). See the BCL example programs for examples of this.
  • {g} - A double value.
  • {i} - An integer value.
  • {t} or {T} - A string value.
  • {s} - A string within single quotes.
  • {S} - A string within double quotes.
output
Type:  System.Object
The out object array. The results from this must be unboxed to the correct type on return and allocated to the relevant variables. See the BCL examples for examples of this.
numData
Type:  System.Int32
The number of times to read the format string. For instance if the format string was "{i} , {g} ; {S} , " and the numdata=2 then the resultant format string to be read would be "{i} , {g} ; {S} , {i} , {g} ; {S}" as the method strips everything after the last occurence of "}".

Return Value

Type:  Int32
The integer number of items read, -1 on error.
Examples
xbcoco2.cs, xbcoco3.cs, xbdelvr.cs and xbpurch.cs in the Introductory Examples folder. folioqp.cs, xbexpl1i.cs and xbexpl2.cs in the User's Guide Examples folder.
See Also

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.