NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert new line into a text file?

I want to write a text fike using TestStand. I use Microsoft Sripting Runtime to achieve this. Please find my attached script. It writes as "0123456789". But I need it like

 

0

1

2

3

4

5

6

7

8

9

 

How do I insert new line. I tried "\n", but it doesn't work.Please help

0 Kudos
Message 1 of 2
(2,429 Views)

Instead of using the Write method use the WriteLine method.  You shouldn't have to change anything else.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(2,404 Views)