<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Reading and writing .txt files in the python scripts</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/afd1e7e42d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/afd1e7e42d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/afd1e7e42d/</id><updated>2020-02-27T14:45:10.212000Z</updated><subtitle>Recent posts to Reading and writing .txt files in the python scripts</subtitle><entry><title>Reading and writing .txt files in the python scripts</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/afd1e7e42d/?limit=25#4364" rel="alternate"/><published>2020-02-27T14:45:10.212000Z</published><updated>2020-02-27T14:45:10.212000Z</updated><author><name>Rachana</name><uri>https://forge.codesys.com/u/rachana/</uri></author><id>https://forge.codesys.com3a9ec66a7666fbaeb575bf6fee2bdc9583c51033</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is it possible to read a .txt file say:&lt;br/&gt;
with open("D:\Support\t\EnumList.txt","r") as enumFileRead:&lt;br/&gt;
    lines = enumFileRead.readlines()&lt;/p&gt;
&lt;p&gt;These are inbuilt functions of python. But can we use this along with other commands from ScriptEngine and run it from CODESYS.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>