Skip to content

FileManager Class

The FileManager class let you interact with files. It provides a function to load any file supported by PrestoPlot.

An event will be fired when PrestoPlot is trying to load a file, where you can take the responsibility to effectively load the data to make your own format reader.


Public Functions

loadDataFile(filename)


Public Callbacks

onLoadDataFile(filename)


Detailed Functions Descriptions

loadDataFile

loadDataFile(filename)

This function will load a data file, given its filename.

Parameters :

  • filename : The full file name of the file to load.

Detailed Callbacks Descriptions

onLoadDataFile

onLoadDataFile(filename)

This function will be called when a data file is being loaded. It can be used to implement a home made reader for a specific file format. You can implement here all the logic to read some specific file structure and inject data in new datasets.

Parameters :

  • filename : The file name to load.

Return : Your callback implementation must return true if you have processed the file and loaded data, or false if you are not interested in loading this file.