Closes the file opened by dfropen. This function must be called after a successful call (without error) to dfropen.
Objects: Procedure, Transaction, Web Panel, Data Provider
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3)
This function may return some of the following values:
||The file has been read.
||It occurs when this function is called before calling the DFROpen function, or when the call to DFROpen returned a value other than zero (error).
For this example, the parameter field separator is not required.
&Text = ""
&i = dfropen( "Test.txt",1024,,"")
If &I = 0
Do while dfrnext( ) = 0
&i = dfrgtxt(&Line) // The length of the line is given by the size of the variable.
&Text = &Text + Newline() + &Line
&i = dfrclose( )
&Text = "Could not open file"
Delimited ASCII files functions