2.2.4.42.7 storage::Read

Description

Load contents from file into storage class. They can be retrieved by GetTxt method.

Syntax

bool Read( LPCSTR lpcszFile )

Parameters

lpcszFile
[input]File name

Return

Returns TRUE on success and FALSE on failure.

Examples

EX1

//run example code in Storage::Write before run this code to see the result.
void Storage_Read_ex1()
{
    storage st;    
    bool bRet = st.Read("C:\\Test.xml");
}

Remark

See Also

Storage::Write

Header to Include

origin.h