Home > other >  IronPython beginners: unable to open a text file
IronPython beginners: unable to open a text file

Time:12-26

Use of a small white VS2017 + IronPython study, wrote a simple few lines of code to open and read the text files, is unable to open file, wrong positioning in line 2, error message is: TypeError: expected file, got int

 
The fs=open (r "E: \ TempFile as expected \ L2020_1219 log", "r", 1)
Fstring=fs. Read (1)
Print fstring


Operating system is win10 x64, file and determine the existence, and the use of OS. The access check has read and write access to the file, could you tell me what is what causes?
  • Related