write a value into csv file

Ask general questions here.
Posts: 24
Joined: Wed Oct 07, 2009 3:26 pm

write a value into csv file

Post by Ruser » Thu Mar 25, 2010 11:10 pm

Hi Support,

I am using the "csvconnector.cs" provided in the example to read test value as this:

string string1 = csvConnector.Rows[1]["parameter1"].ToString();

If I generate another string2 during the testing, how can I write "string2" into my csv file and replace the string1.


User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: write a value into csv file

Post by Support Team » Fri Mar 26, 2010 12:47 pm


The CSVConnector only reads data from a csv file. To write a string to your csv file, you must implement your own function. Or just take a look at this link http://knab.ws/blog/index.php?/archives ... art-1.html

Ranorex Support Team