I cannot access the contents of a file

Hi! I am developing my own add-on, but it does not perform well the measurements (they always result in 0). I think the problem is in accessing the file. Does anyone know how I can fix it? Thanks!
I am trying to get a number from the file and save it as a result of the measurement:


parte2

Hi,

What language is this for?

 
Ann

Python. But I solved it, I had to use the function content().

Thank you!

1 Like