title: Writing and reading variables in Basic4Android
body: <p>Firstly, great job on B4A. I've just started, and already have a small app running on my 10" tablet. 
  It's very exciting. But I'd like to do this next...</p>
  
  <p>As a self-taught newbie, I wrote an app using VB6. It's a "glorified calculator" that produces a text file from user inputs, which becomes a "program" for a CNC lathe. 
  In essence, the app generates one text file - a long list of variable names and their values. These variables are then read back into memory, and output to a second text file, in a format the CNC lathe can understand. To make life interesting, all lathes are not created equal - they have slightly varying 
  (syntax?) needs, so there have to be several separate "Post Processors" to cope with the different "dialects". Which is not a problem, once I have it sussed in this Android world!</p>
  
  <p>So (simplified) the first text file, produced from user input in text boxes, may look like this:
  Diameter1 = 123.4</p>
  
  <p>Diameter2 = 456.7</p>
  
  <p>Length1 = 0</p>
  
  <p>Length2 = -35.</p>
  
  <p>RoughingFeedrate = 0.25</p>
  
  <p>FinishingFeedrate = 0.1</p>
  
  <p>etc...</p>
  
  <p>This first text file format isn't critical - whatever works. It's just an intermediate storage place.</p>
  
  <p>Then, after "Post Processing", using the stored variables in the first text file, the second text file could be this:</p>
  
  <p>G0 X123.4 Z0</p>
  
  <p>G1 Z-35. F0.25</p>
  
  <p>X456.7 F0.1</p>
  
  <p>I'd be very grateful for either a solution, or to be pointed to a suitable place. I have looked but not found anything simple enough.
  I'm hoping this is one of those "easy when you know how" situations.
  I thank you in advance, hoping I've posted in the correct place, and hoping that you have a SIMPLE solution for me, (these posts are mind-boggling!)</p>