October 20th, 2013, 03:41 PM
NXT Python - work with txt files
I need help with reading and writing a text file in Lego NXT brick using NXT Python. Author of NXT Python says, thet I should use open_read and open_write functions in nxt/system.py, but I don't understand that.
Thank you and sorry for my bad english
October 20th, 2013, 07:52 PM
python statements to open a file, read the content into memory and store that object to a variable named `content' is
with open('a.file') as inf:
content = inf.read()
Beyond that I don't know how to assist.
[/code] are essential for python code and Makefiles!