I am trying to pull data from a file, in this case we’ll call it FILE.txt. Here’s it’s data:
item1=value1
item2=value2
;item3=value3
item4=value4
item5=value5
;item6=value6
;item7=value7
What I am trying to do is parse the data from the file into a form. For example:
<label for="item1">item1</label>
<input type="text" value="value1" name="item1">
..... (so on and so forth for each item found in the file.)
I have been racking my brain trying to get this figured out, and have just about given up. I’ve scrapped my code since it appears to not work at all.
I’m also trying to make it so that it will ignore values that start with a semi-colon ( ; ). those won’t be parsed into the form that’s generated.
Any help you can give would be greatly appreciated.
Happy Holidays.