ReadRenishawSingleSpec

Declaration: ReadRenishawSingleSpec (FName: string; var Title: string; var Spec: TSpectrum): integer;
The function ReadRenishawSingleSpec reads a single-spectrum Renishaw WiRE file (extension .wdf) into the array Spec. The parameter FName specifies the full file path of the WDF file. The title of the spectrum is returned in the variable parameter Title.

The function returns the following error codes:

 0 ... everything is OK, Spec is valid
-1 ... file FName does not exist
-2 ... file FName is not an WDF file
-3 ... the file is not a single-spectrum file