How to make table structure file using org.apache.commons.io.FileUtils.writeStringToFile(file)?



  • I used Webdriver sampler and write selenium -Javascript. Now I used org.apache.commons.io.FileUtils.writeStringToFile(new java.io.File('somefile.log'), 'some-data', 'UTF-8', true) function to write a file . I want to save a tabular data (column & row-wise) in that file using writeStringToFile() function. How we can achieve this?



  • If you want to insert a https://en.wikipedia.org/wiki/Tab_key - use \t https://codegym.cc/groups/posts/escaping-characters-java

    Here is an example of writing "tabular data" into https://www.blazemeter.com/blog/how-to-configure-jmeter-logging

    enter image description here


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2