I've got a Text File of Instructions for a 3rd party hardware.
This File is only edited during Development, and never during run time, so I don't wish for the end user to be able to mess with the file.
The Text file is a list of about 360 Lines where each line is sent to the hardware.
Now I know I can just "Open" it as a file & send it to the hardware via its communication bus, but that would mean that they can "edit" the file.
Is their a way to have this text file just encoded in the app so that the app can read it like a string or something ?
The previous version had each line hand coded with a write statement.
I.E.
Write("config line1");
Write("config line2");
Write("config line3");
ect, for 360+ lines now, not that efficient.(the file itself is edited with another application designed for the hardware scripting)
what I'm hoping to find is something like
string[] configfile=magic pointer to file in memory;
foreach (string currentline in configfile)
{
Write(currentline);
}


Sign In
Create Account


Back to top









