DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

save ascii file with configuration

Solved!
Go to solution

I have a text file (origin file) (separator = vbtab) with the following structure:

First line contains names of channel and others lines are data

 

Name1 Name2       Name3 . . . . 

 45,4     dfr        17/05/2009..........

 34,1     fgh        13/04/2008.........

   .          .                    .

   .          .                    .

   .          .                    .

 

1)For load of data I use *.stp filter and I create my channels with data:

Group1/Name1;

Group1/Name2;

Group1/Name3;..........

 

2) I change some values into my channels

 

3) I need to export my channels into a text file with the same structure of my origin text file.

I usually use: OpenTextFile writeline method.....

 

Is it possibile to save data from my channels to a text file with the structure of my origin file and use for it some filter (same of .stp) or others methods and don't write every line into a text file?

 

Thanks,

 

Yustas

 

 

0 Kudos
Message 1 of 3
(3,729 Views)
Solution
Accepted by Yustas

Maybe those lines help

 

Option Explicit
dim csvFilename : csvFileName = "D:\temp\EXAMPLE.csv"
DataFileSave "<filename>" & replace(replace(csvFileName, "&", "&amp;"), "<", "&lt;") & "</filename>" &_
  "<delimiter>tab</delimiter><decimalpoint>,</decimalpoint><timeformat>DD/MM/YYYY hh:mm:ss</timeformat>" &_
  "<channelnames>yes</channelnames><startrow>1</startrow>", "CSV"

 

Greetings

Andreas

0 Kudos
Message 2 of 3
(3,717 Views)

Thank you AndreasK!

 

It work great!

 

 

 

 

0 Kudos
Message 3 of 3
(3,704 Views)