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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

how to write data to a file with a custom format?

hyokjae
1-Newbie

how to write data to a file with a custom format?

Dear Mathcad users,

Would anyone know how to write data to a file with a custom format?

After mathcad calculation, I am trying to write columns of data1 and data2 into an external ascii file in the following format:

( data1, data2)

How do you insert "(" and "," and ")" before, in between and after the data?

Any help would be appreciated!

Thanks,

HJS

ACCEPTED SOLUTION

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

Hi HJS,

Assuming you need an ASCII readable file, the function WriteData in attached mathcad sheet will do exactly what you asked.

Success!

Luc

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald III
(To:hyokjae)

Hi HJS,

Assuming you need an ASCII readable file, the function WriteData in attached mathcad sheet will do exactly what you asked.

Success!

Luc

Hi Luc,

Thanks much for your help.

It was exactly what I was looking for.

Thanks again.

HJS.

Announcements

Top Tags