Click here to Skip to main content
13,458,837 members

converting txt file into working command set in c

Matan Fihman asked:

Open original thread
Hello everyone
I'm trying to build PLC that can be programmed through using GUI made in C++
I had an idea that using the GUI i'll create a txt file will contain a parsing of the commands that the user wants that the plc will do
in such manner the user can use multiple commands set and also store them for future use

I hope you manage to understand what i'm trying to say

My problem is how to write a C program that will convert to txt file into commands that now i can transfer into the chip
what do i need to do or where can i read about those types of programs?

thank you for your help

Matan F
1)inputX outputY DO func(W)
2)inputX2 outputY outputYi ... Func(W2)

code to convert txt to C embedded --> what do you think need to go here

ps. i had an idea to do it with xml instead of txt
if it helps
Tags: C++, C, Windows (Embedded), PLC


When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).

Advertise | Privacy |
Web03-2016 | 2.8.180323.1 | Last Updated 26 Mar 2009
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100