Hi All
Aplogies in advance for a dumb question.
I'm trying to read in a file format as follows:
myVariableName=myValue
I then do a split against this:
set props [ split $arg = ]
Then I assign assign values to my variables:
set [lindex $props 0] [lindex $props 1]
That's all fine until my file contains something like:
myvariableName=myValue=1234
Of course the split discards the last value. I want to keep the value as "myValue=1234"
Is there a split option to tell it to split only on the first occurrence of the = ??
Or - a better way to fo this?
Many thanks in advance
Jules
Aplogies in advance for a dumb question.
I'm trying to read in a file format as follows:
myVariableName=myValue
I then do a split against this:
set props [ split $arg = ]
Then I assign assign values to my variables:
set [lindex $props 0] [lindex $props 1]
That's all fine until my file contains something like:
myvariableName=myValue=1234
Of course the split discards the last value. I want to keep the value as "myValue=1234"
Is there a split option to tell it to split only on the first occurrence of the = ??
Or - a better way to fo this?
Many thanks in advance
Jules