Skip to main content
1-Visitor
October 13, 2020
Solved

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

  • October 13, 2020
  • 1 reply
  • 1974 views

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 ?

Best answer by LucMeekes

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

1 reply

LucMeekes23-Emerald IVAnswer
23-Emerald IV
October 14, 2020

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

1-Visitor
October 15, 2020

thanks, it is working!

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

SL_2467454_0-1602757959880.png

 

23-Emerald IV
October 15, 2020

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

 

Luc