Hello
Is it possible to save the captured data to one file named "output.txt" and keep overwriting that file for every subsequent write.
So I will always have just one file which will be over-written each time.
Below is my code which generates different files with different filenames.
if (oSession.PathAndQuery.ToLower().Contains("iva/subscriptions"))
{
if(oSession.responseCode == 200)
{
var directory2 = "C:\\aos";
var filename2 = oSession.oRequest.headers['SOAPAction'].ToString().Replace('"','') + "_" + Guid.NewGuid();
var path2: String = System.IO.Path.Combine(directory2, filename2);
//oSession.SaveRequestBody(path2 + "_request.txt");
oSession.SaveResponseBody(path2 + "_response.txt");
}
}
Thank you