<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Rpi Read Data from File &gt;255 Char</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3e5ec1bb10/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3e5ec1bb10/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/3e5ec1bb10/</id><updated>2020-02-27T15:36:57.724000Z</updated><subtitle>Recent posts to Rpi Read Data from File &gt;255 Char</subtitle><entry><title>Rpi Read Data from File &gt;255 Char</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3e5ec1bb10/?limit=25#8e5c" rel="alternate"/><published>2020-02-27T15:36:57.724000Z</published><updated>2020-02-27T15:36:57.724000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com5a897f9ae5693610087474f43c3720906815caa2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;You can define a variable with a different string length such as s := STRING(5000). Additionally there is a read function where you can define the number of chars to read and create a Plc loop (read 200 chars, do something, every Plc scan).  Note: longer string lengths take more processing power/time.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rpi Read Data from File &gt;255 Char</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3e5ec1bb10/?limit=25#e7e6" rel="alternate"/><published>2020-02-27T15:36:55.542000Z</published><updated>2020-02-27T15:36:55.542000Z</updated><author><name>HProg</name><uri>https://forge.codesys.com/u/hprog/</uri></author><id>https://forge.codesys.coma1e2616dcd24803a656c93827fba6092ab62106a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I tested out the sample (from Codesys HP "FileUtilitiesPI.project") to read / write Data from a file, it works fine, but how can I read Line by line (till $r/$n) or how can I handle the data bigger than 255 char? (e.g. store in a string Array?) &lt;br/&gt;
My Problem is that I get all data from the file with the funkction "Caa File.Read". with the size of the destination string (max. 255) &lt;/p&gt;
&lt;p&gt;So please, is there  sombody who can give a small sample, or description to me? &lt;/p&gt;
&lt;p&gt;THX for your help&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>