Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6744069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:02:23+00:00 2026-05-26T12:02:23+00:00

Firstly, great job on B4A. I’ve just started, and already have a small app

  • 0

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…

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!

So (simplified) the first text file, produced from user input in text boxes, may look like this:
Diameter1 = 123.4

Diameter2 = 456.7

Length1 = 0

Length2 = -35.

RoughingFeedrate = 0.25

FinishingFeedrate = 0.1

etc…

This first text file format isn’t critical – whatever works. It’s just an intermediate storage place.

Then, after “Post Processing”, using the stored variables in the first text file, the second text file could be this:

G0 X123.4 Z0

G1 Z-35. F0.25

X456.7 F0.1

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!)

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:02:24+00:00Added an answer on May 26, 2026 at 12:02 pm

    See the text files tutorial.
    You should use File.WriteMap to save a pairs of keys and values.
    You can later either create a string with the required format and save it with File.WriteString or add each line to a list and write it with File.WriteList.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly: I am totally a newbie for this kind of work. I have a
Firstly, I do not have any malicious intent out of this question. I would
Firstly, Modifying may be the wrong term, I see a few people have posted
Iv'e recently started a new job as an ICT Technician and im creating an
When Roslyn installed, it comes with a couple of great demo tools. Firstly, the
Firstly, I realise that this is a very similar question to this one: Which
Firstly, let me set out what I'd like to do. Assume I have three
Firstly there's a great overview of the IIS7 HTTP request lifecycle and various settings
Firstly, please forgive it is already asked one or can be find easily with
Firstly, this seems like something that should have been asked before, but I cannot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.