title: Beckhoff How to Open and Read a file in TWINCAT 3 C++ in a CycleUpdate?
body: <p>I am learning to use TWINCAT 3 with C++ and as my first work, I decided open a <code>.txt</code> file and get a number inside, and put on an string or an integer.</p>
  
  <p>I have read all the documentation and have many questions. I discovered that I can't use the C++ libraries, just the TWINCAT functions. Then I got lost.</p>
  
  <p>First: What are the exacts steps to Open a file in TWINCAT 3 with C++?</p>
  
  <p>Second: How can I read the data in the file and put in an string or integer?</p>
  
  <p>I would like to do that in a CycleUpdate.</p>
  
  <p>I am sorry if it is a noob question.</p>