6.2 Read method

Searches a file for an Entry object and returns the specified entry object.

6.2.1 Syntax

object.Read( 
   FileName As String, 
   Section As String, 
   Entry As String, 
   Default As String)

6.2.2 Parameters

FileName

String. The path and the name of the file to read from.

Section

String. The section in the file to read.

Entry

String. The value of the entry to be searched.

Default

The default value that is to be returned if the specified entry is not found.

6.2.3 Return Values

String. Returns the specified Entry object. If the object does not exist, the Default string is returned. If the corresponding string for the object is empty, it returns an empty string.

6.2.4 Remarks

If FileName does not contain the fully qualified path, this method assumes the current directory.

6.2.5 Example

Refer to the sample in Example to know more about how to write entry and buffer values to a section in a file and how to read the data from the file and print it .

6.2.6 See Also