Click here to Skip to main content
12,631,606 members (30,535 online)

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
example
txt-->
1)inputX outputY DO func(W)
2)inputX2 outputY outputYi ... Func(W2)
3)etc...
.
.
.

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

Preview



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.
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 | Mobile
Web01 | 2.8.161205.3 | Last Updated 26 Mar 2009
Copyright © CodeProject, 1999-2016
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