On 10/02/2016 at 23:41, xxxxxxxx wrote:
I have trouble reading a file in my c++plugin on Windows 10.
To test I created a python script to open and read the license file.
In windows 8.1 it is ok.
In windows 10 it gives me a "IOError: No such file or directory: d:/license.lic."
It seems as if windows 10 does not recognize the file as a text file.
We set the protection for the file and the maxon directory on windows 10 fully open.
What could be wrong?
import c4d,os
from c4d import gui
def main() :
licFile = "d:/license.lic"
fi = open(licFile)
print fi.readlines()
fi.close()
if __name__=='__main__':
main()
-Piim