<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Länge des Dateiinhaltes auslesen???</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b8057ad1de/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b8057ad1de/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/b8057ad1de/</id><updated>2020-02-28T14:22:06.966000Z</updated><subtitle>Recent posts to Länge des Dateiinhaltes auslesen???</subtitle><entry><title>Länge des Dateiinhaltes auslesen???</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b8057ad1de/?limit=25#4bda" rel="alternate"/><published>2020-02-28T14:22:06.966000Z</published><updated>2020-02-28T14:22:06.966000Z</updated><author><name>c.reps</name><uri>https://forge.codesys.com/u/c-reps/</uri></author><id>https://forge.codesys.com846a474425f26c4d5187b7da489963d7bdc4646d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Bewarofthis  ,&lt;/p&gt;
&lt;p&gt;hab ich mir schon gedacht, dass es soetwas noch nicht gibt.&lt;/p&gt;
&lt;p&gt;Deinen Ansatz finde ich gut. Werde es ausprobieren.&lt;/p&gt;
&lt;p&gt;Danke nochmal.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Länge des Dateiinhaltes auslesen???</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b8057ad1de/?limit=25#95b8" rel="alternate"/><published>2020-02-28T14:22:04.173000Z</published><updated>2020-02-28T14:22:04.173000Z</updated><author><name>Bewareofthis</name><uri>https://forge.codesys.com/u/bewareofthis/</uri></author><id>https://forge.codesys.comd16c44e0d33fa620a36d0464d817a7d731fff098</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;soweit ich weiß geht das leider nicht. Hier musst du dir wohl selber ne Funktion basteln.&lt;/p&gt;
&lt;p&gt;Als Ansatz evtl. so:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Datei-Länge mit SysFileGetSize ermitteln&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Datei Byteweise in for-Schleife einlesen bis max. Bytes&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In ein n,n Dimensionales String-Array (deine Zeilen) die gelesenen  Bytes kopieren&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ist das akt. Byte dein Trennzeichen ";" wird Index für Spalte erhöht&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Ist akt. Byte  "CRLF", dann Index für Reihe erhöhen&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;usw. bis Dateiende erreicht ist.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ergebnis ist dann eine  in Zeilen und Parameter-Spalten fertig zerlegte CSV-Datei.&lt;/p&gt;
&lt;p&gt;Siehe auch Codesys-Hilfe Stichwort "SysLibFile"&lt;/p&gt;
&lt;p&gt;HTH &lt;/p&gt;
&lt;p&gt;Bewareofthis&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Länge des Dateiinhaltes auslesen???</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b8057ad1de/?limit=25#5488" rel="alternate"/><published>2020-02-28T14:21:56.396000Z</published><updated>2020-02-28T14:21:56.396000Z</updated><author><name>c.reps</name><uri>https://forge.codesys.com/u/c-reps/</uri></author><id>https://forge.codesys.com6da13181e8a9c232323600d97d48cba5416d9e50</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo CoDeSys Gemeinde,&lt;/p&gt;
&lt;p&gt;ich bin neu auf dem Gebiet CoDeSys und soll es im Rahmen einer Diplomarbeit benutzen.&lt;/p&gt;
&lt;p&gt;Ich soll Werte aus einer CSV-Datei einlesen.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://www.wago.com/wagoweb/documentation/index_d.htm?utm_source=Website&amp;amp;utm_medium=CR&amp;amp;utm_campaign=TD%2BAutomation" rel="nofollow"&gt;http://www.wago.com/wagoweb/documentation/index_d.htm?utm_source=Website&amp;amp;utm_medium=CR&amp;amp;utm_campaign=TD%2BAutomation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kann ich die Länge (Anzahl der Zeilen) des Inhaltes einer Datei auslesen &lt;/p&gt;
&lt;p&gt;Wenn ja, ein Tip wäre mir sicher sehr hilfreich.&lt;/p&gt;
&lt;p&gt;Vielen Dank für Eure Bemühungen.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>