Hello,
Is it possible to read from file using
fp=open(‘file.txt’,‘r’)
q=fp.readline()
I have tried it within a program main.py, but it doesn’t work like this.
thanks
jackyjoy
Hello,
Is it possible to read from file using
fp=open(‘file.txt’,‘r’)
q=fp.readline()
I have tried it within a program main.py, but it doesn’t work like this.
thanks
jackyjoy
Ya, that should work. What happens when you try it?
Writing a file is a bit trickier. See here for a how-to: https://learn.adafruit.com/cpu-temperature-logging-with-circuit-python
thanks my issue has been fixed.
my totally issue is fixed.
Hi, I am facing the same issue. Can you please let me know how did you fix it?