LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving 2 strings to text file in 2 columns

I am trying to save two strings to a text file with the first string as column 1 and the second string as column 2 but can't get it to work right.

 

Thank you

0 Kudos
Message 1 of 5
(3,391 Views)
Well, what are you trying? Are you using the Write to Spreadsheet File function? Are you feeding it an array of strings?
0 Kudos
Message 2 of 5
(3,389 Views)

What I have done is attached. I am trying to use Write to Spreadsheet File. The first string is how I want it but the second is all in one row after the last element of the first string.

 

Thank you

Download All
0 Kudos
Message 3 of 5
(3,382 Views)
You are reading "index.dat", but you are not converting the string into an array of strings. The Build Array just gives you an array of one element, which is one big long string. You should use Read From Spreadsheet File instead of Read Text File so you can get an array of numbers. Then you can build your arrays.
0 Kudos
Message 4 of 5
(3,358 Views)
It works now. Thank you for your help
0 Kudos
Message 5 of 5
(3,323 Views)