FileHandler

writeToFileSync(data)

Returns:None

Description: Writes to file synchronously

writeToFileAsync(data)

Returns: None

Description: Writes to file asynchronously

readFileAsync(callback)

Returns: File data

Description: Reads file asynchronously

readFileSync()

Returns: File data

Description: Reads file synchronously

JsonHandler

readJsonSync(convertToObject=false)

Returns: If convertToObject is true it will covert the json into JavaScript Object and return it and if its false then it will return json

Description: Reads JSON file synchronously

readJsonAsync(convertToObject=false, callback)

Returns: If convertToObject is true it will covert the json into JavaScript Object and return it and if its false then it will return json

Description: Reads JSON file asynchronously

writeToJsonSync(content)

Returns: None

Description: The content should be javascript object or array or both. It will then covert it to json and write it synchronously.

writeToJsonAsync(content)

Returns: None

Description: The content should be javascript object or array or both. It will then covert it to json and write it asynchronously.