Forum Discussion
Tek_Travels_Pvt
10 years agoOccasional Contributor
Hi
Thanks for the solution but I want to save the status of each step in db.How this can be done.Please help
mishka
10 years agoNew Contributor
hi ,
I dont know how to save it in DB never tried it , but you can save it in TXT files ,
If you will do simple looping on the response and refer it to the TXT file ,
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
File file = new File("C:/Users/Desktop/[folder name]/file name --> it can be varible.txt"); //it will create the file
FileWriter fw = new FileWriter(file.getAbsoluteFile());
BufferedWriter bw = new BufferedWriter(fw);
bw.write([your value] + System.lineSeparator());//new line
bw.close();//close the write to the file
hope it helped.:)