Skip to main content
1-Visitor
September 25, 2011
Solved

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

  • September 25, 2011
  • 2 replies
  • 2003 views

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

Best answer by LucMeekes

Hi HJS,

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

Success!

Luc

2 replies

LucMeekes23-Emerald IVAnswer
23-Emerald IV
September 25, 2011

Hi HJS,

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

Success!

Luc

hyokjae1-VisitorAuthor
1-Visitor
September 26, 2011

Hi Luc,

Thanks much for your help.

It was exactly what I was looking for.

Thanks again.

HJS.