<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to To write a binary file</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7484338c2d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7484338c2d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/7484338c2d/</id><updated>2020-02-27T13:58:23.962000Z</updated><subtitle>Recent posts to To write a binary file</subtitle><entry><title>To write a binary file</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7484338c2d/?limit=25#57d7" rel="alternate"/><published>2020-02-27T13:58:23.962000Z</published><updated>2020-02-27T13:58:23.962000Z</updated><author><name>eric.lin</name><uri>https://forge.codesys.com/u/eric-lin/</uri></author><id>https://forge.codesys.comcffbc76bb6ed35d4ff481eef0deb9d8322c2dec3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the reply/suggestions&lt;br/&gt;
It's helpful and corrected some of my concept&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>To write a binary file</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7484338c2d/?limit=25#1ec7" rel="alternate"/><published>2020-02-27T13:58:23.265000Z</published><updated>2020-02-27T13:58:23.265000Z</updated><author><name>alwoso</name><uri>https://forge.codesys.com/u/alwoso/</uri></author><id>https://forge.codesys.comd59d2155131197bf3fdde8cbce443d9717bfaba2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi eric,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
Another question is, what's the difference between SysFile.lib and SysLibFileAsync.lib?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;looking into the documentation area of SysFileAsync you can read, that this library is a "wrapper" for SysFile to handle asynchronous access to file functions. That means, the requested function will be processed in the background, and in your program you have to wait for the result. This may last some time, depending on the function and your hardware etc.&lt;/p&gt;
&lt;p&gt;The big advantage is that your application program is not interrupted by a slow file access, which might cause trouble in your machine.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Alfred&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Sysfileasync.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4203"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>To write a binary file</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7484338c2d/?limit=25#19b2" rel="alternate"/><published>2020-02-27T13:58:23.045000Z</published><updated>2020-02-27T13:58:23.045000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.com13a1ffca6f4b314fe423039acca61357a5834097</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please read some ascii and file storing documentation before posting … GIYF&lt;/p&gt;
&lt;p&gt;There are no characters stored in files. Only bits are. ASCII is a way of interpreting those bits.&lt;br/&gt;
so recording "A" character in a file, with text mode or binary mode, as long as you are in ASCII encoding, will produce 01000001(0x41) in your file.&lt;/p&gt;
&lt;p&gt;Then reading it, it will be read bytes per bytes. binary mode and ascii mode. binary mode will show the raw value 0x41 while ASCII will show you decoded ascii char -&amp;gt; "A"&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>To write a binary file</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7484338c2d/?limit=25#d945" rel="alternate"/><published>2020-02-27T13:58:22.824000Z</published><updated>2020-02-27T13:58:22.824000Z</updated><author><name>eric.lin</name><uri>https://forge.codesys.com/u/eric-lin/</uri></author><id>https://forge.codesys.com69d6c3afb07753fbeefb5179f92338e180f47d3b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi~&lt;br/&gt;
For example, when I write character A &lt;br/&gt;
I want it to be recorded as 01000001(0x41) in binary mode&lt;br/&gt;
And be recorded as A in text mode (ascii mode)&lt;br/&gt;
Can I achieve this with codesys libs ? Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>To write a binary file</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7484338c2d/?limit=25#078b" rel="alternate"/><published>2020-02-27T13:58:22.605000Z</published><updated>2020-02-27T13:58:22.605000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.comcb5430d1d0dce6ecc8a84a47c45531c4b3aa84d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;As almost all devices don't run Windows plateforms, this topic suggest it's the same :&lt;br/&gt;
&lt;a class="" href="https://stackoverflow.com/questions/229924/difference-between-files-written-in-binary-and-text-mode" rel="nofollow"&gt;https://stackoverflow.com/questions/229924/difference-between-files-written-in-binary-and-text-mode&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>To write a binary file</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7484338c2d/?limit=25#48fc" rel="alternate"/><published>2020-02-27T13:58:21.898000Z</published><updated>2020-02-27T13:58:21.898000Z</updated><author><name>eric.lin</name><uri>https://forge.codesys.com/u/eric-lin/</uri></author><id>https://forge.codesys.com434d35131a12615fcd503ad9372aedfdd696ba1c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;br/&gt;
I want to open and write a file in binary mode&lt;br/&gt;
Seems SysFile.lib doesn't support this option, can anyone give me some advice?&lt;br/&gt;
Another question is, what's the difference between SysFile.lib and SysLibFileAsync.lib?&lt;br/&gt;
Thank you very much &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>