I have applied the solution to my question:
but it has not resolved.
I wish to save the file at the following location :
Path of the script:
* * * * * * /usr/bin/python3 /home/user/Documents/Python/script.py
It saves the data in a new file created on the following location if I give relative path:
and I do not want to give absolute path for the output file.