I am basically trying to capture a value from the application during run time. What I need is,I have to save this captured value from application in external CSV file during run time. In this case I am using external CSV file as datapool.
I am able to save the value in datapool during runtime. The script which I have posted above is to update the datapool during runtime.
I am looking for similar script to update the external CSV file during run time.
CSV file is normal text file. So we use fileWriter or FileoutPutStream APIS for modifying the csv file.
<font class="small">Code:</font><hr /><pre>
// Make one FileOutPutStream to your csv file and make one print Stream to that FileOutPutStream
FileOutputStream fo = new FileOutputStream("fileName.csv");
PrintStream out = new PrintStream(fo);
//Now print the captured values to your csv file.
out.print("delimiter , or ; or - etc");