A selection of general purpose functions.
import utils
utils.copyFile(source, destination)
Copy a file defined by source
to the absolute path defined in destination
source
: absolute path of the source file to be copieddestination
: absolute path of the new fileutils.readFromFile(source)
Get as string all the data from the file.
source
: absolute path of the source file to be read""
utils.writeToFile(destination, content)
Write the string
defined by content
to the file with absolute path defined by destination
destination
: the absolute file of the target filecontent
: the string to be written to the file.