cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Mathcad, string write to a text file issue with the " character

SOLVED
Highlighted

Mathcad, string write to a text file issue with the " character

I want to write content like this to a text file:
ZZ4.VALUE ".PARAM Imax = 110"
with the numeric value contained in a Mathcad variable. I manage to generate the string with the format function, but when I write it to the text file with the writetxt function, I have characters " which are written at the beginning and at the end. Also, if I try to add a character " in the middle, I have this character twice:
"ZZ4.VALUE" ".PARAM Imax = 110" ""
How can I do ?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Mathcad, string write to a text file issue with the " character

You should state the version and kind of 'mathcad' that you are using:

Mathcad 15, or Prime 1,2,3,4,5,6?

Further, how about:

LucMeekes_0-1602682931326.png

 

Success!
Luc

View solution in original post

4 REPLIES 4
Highlighted

Re: Mathcad, string write to a text file issue with the " character

You should state the version and kind of 'mathcad' that you are using:

Mathcad 15, or Prime 1,2,3,4,5,6?

Further, how about:

LucMeekes_0-1602682931326.png

 

Success!
Luc

View solution in original post

Re: Mathcad, string write to a text file issue with the " character

thanks, it is working!

With several lines, on Mathcad Prime 6, I do the following:

SL_2467454_0-1602757959880.png

 

Highlighted

Re: Mathcad, string write to a text file issue with the " character

You may also want to add a LF (Linefeed, 11 if I remember right) between lines.

 

Luc

Highlighted

Re: Mathcad, string write to a text file issue with the " character

Linefeed is 10.

11 is vertical tab (something you usually get by manually entering Shift-Enter.

Announcements