LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

copy data from many files to one file

Solved!
Go to solution

Hi,

 

If I have around 100 files. Every file is an array in 1 D contains 1 column with 1000 lines (numbers).

I want to copy the contents of these 100 files and paste them in only one file. I want the new file also array 1D. 

If I do it manually, it will copy the input files contents and paste it in the new file.txt one by one Down each other.

i tried to do something like the attached but till not give the expected results.

 

0 Kudos
Message 1 of 6
(2,171 Views)

Hi Baja,

 


@BaJa_2020 wrote:

I want to copy the contents of these 100 files and paste them in only one file. I want the new file also array 1D.


Simplified your VI:

Why do you work with 2D arrays in the loop when you need just 1D arrays?

(When you need to know the name of a function you should have the context help window open. No need to clutter a block diagram just to show the name of each and every function…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,154 Views)
Solution
Accepted by topic author BaJa_2020

Do you have an example file you could share?  Why not just read the entire file as a string and just write that to the new file?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(2,146 Views)

this is example of the input files

0 Kudos
Message 4 of 6
(2,141 Views)

Hi Baja,

 


@BaJa_2020 wrote:

this is example of the input files


Where?

(Please ZIP files before attaching.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(2,133 Views)

Any way your way is working, I accept it as solution,, Thank you 

0 Kudos
Message 6 of 6
(2,131 Views)