Ask a Question

Append Data in File

SOLVED
vikassardesai
Occasional Contributor

Append Data in File

Hello,

  I want to open a csv file and add one line with "Name,Address" at the beginning of the file in append mode.

Can you help me?

 

1 ACCEPTED SOLUTION

Accepted Solutions
tristaanogre
Community Hero

Re: Append Data in File

Have you taken a look at the aqFile object and it's methods?

 

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfile/opentextfile.html


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

1 REPLY 1
tristaanogre
Community Hero

Re: Append Data in File

Have you taken a look at the aqFile object and it's methods?

 

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfile/opentextfile.html


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: