<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Use SysFileGetSize</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65f47f841d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65f47f841d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/65f47f841d/</id><updated>2020-02-27T14:23:26.049000Z</updated><subtitle>Recent posts to Use SysFileGetSize</subtitle><entry><title>Use SysFileGetSize</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65f47f841d/?limit=25#6cd8" rel="alternate"/><published>2020-02-27T14:23:26.049000Z</published><updated>2020-02-27T14:23:26.049000Z</updated><author><name>gatto</name><uri>https://forge.codesys.com/u/gatto/</uri></author><id>https://forge.codesys.come44ff776988da1b4059e15cfa0abf1e797a201c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;found the solution:&lt;br/&gt;
adr(what) on pResult&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Use SysFileGetSize</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/65f47f841d/?limit=25#64e8" rel="alternate"/><published>2020-02-27T14:23:25.608000Z</published><updated>2020-02-27T14:23:25.608000Z</updated><author><name>gatto</name><uri>https://forge.codesys.com/u/gatto/</uri></author><id>https://forge.codesys.com473a49cc74f87473b32967d8dbd6e121865d3f4b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I'm not very good at programming codesys.&lt;br/&gt;
I'm trying to use the SysFileGetSize function to test whether a file exists or not.&lt;br/&gt;
Now I'm trying to simulate on my computer and i put in the folder: C:\ProgramData\CODESYS\Simulation\PlcLogic&lt;br/&gt;
a file named myfile.txt.&lt;/p&gt;
&lt;p&gt;In simulation I see the correct size of the file.&lt;br/&gt;
I don't know what to put in pResult.&lt;br/&gt;
I'm looking for a way to read the error no object.&lt;br/&gt;
My goal is have a message when the file does not exist.&lt;br/&gt;
Currently when I delete the file I only get the size at zero.&lt;br/&gt;
I'm looking for a way to read the error no object, thanks !&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: file1.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4979"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>