CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Reading and writing .txt files in the python scripts
https://forum.codesys.com/viewtopic.php?f=18&t=9050
Page 1 of 1

Author:  Rachana [ Tue Aug 14, 2018 7:35 am ]
Post subject:  Reading and writing .txt files in the python scripts

Hello,

Is it possible to read a .txt file say:
with open("D:\Support\t\EnumList.txt","r") as enumFileRead:
lines = enumFileRead.readlines()

These are inbuilt functions of python. But can we use this along with other commands from ScriptEngine and run it from CODESYS.

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/