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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

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

SL_2467454
2-Explorer

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 ?

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:SL_2467454)

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
LucMeekes
23-Emerald III
(To:SL_2467454)

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

thanks, it is working!

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

SL_2467454_0-1602757959880.png

 

LucMeekes
23-Emerald III
(To:SL_2467454)

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

 

Luc

Werner_E
25-Diamond I
(To:LucMeekes)

Linefeed is 10.

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

Announcements

Top Tags