HBPersistent() > Methods for saving an object xHarbour Developers Network  

oHBPersistent:saveToFile()

Writes the persistent object data to a file.

Syntax

:saveToFile( <cFileName> ) --> lSuccess

Arguments

<cFileName>
This is a character string holding the name of the file to create. It must include path and file extension. If the path is omitted from <cFileName>, the file is created in the current directory.

Description

Method :saveToFile() creates the file <cFileName> and writes into it the binary data of the object executing the method. If the file exists already, it is overwritten. The save data can be copied back to an object using method :loadFromFile()


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe