I am new to python programming.I have a python script and I am trying to profile it using cProfile command. I typed the following
python -m cProfile -o readings.txt my_script.py
It generated readings.txt
. But when I try to open the file using any standard text editor or notepad, the file doesn't open properly. It doesn't contain the data
Can anyone please tell me how to store these statistics into an external file that can be opened using notepad??
I am using windows platform