View Single Post

  #4 (permalink)  
Old 04-03-2005, 01:41 PM
nexus59 nexus59 is offline
Junior Member
 
Join Date: Sep 2004
Posts: 8
nexus59
sachin try this one:

file_open(f1.txt);
file_open(f2.txt);

table = "C:\\f1.txt";
rc = ddt_open(table, DDT_MODE_READ);
if (rc!= E_OK && rc != E_FILE_OPEN)
pause("Cannot open table.");
ddt_get_row_count(table,Count);
for(i=0;i<=Count;i++)
{
file_getline(f1.txt,input);

split(input,v," ");

file_printf("C:\\f2.txt","%s\r\n%s\r\n%s",v[1],v[2],v[3]);
}

file_close(f1.txt);
file_close(f2.txt);
=======================
f1.txt = i am sachin
f2.txt = i
am
sachin

check the syntax for funcs from TSL guide..
Reply With Quote