title: JMeter - Read Files from Directory
body: <p>Using Apache JMeter</p>
  
  <p>First question: I was able to read <strong>one single file</strong> (containing all the data) from a directory and use its data.</p>
  
  <p>However now the requirement is to have <strong>a separate</strong>  file for each data point, that means I will have to put <strong>many</strong> data files in a directory and then read the files off that directory. I have a set of data files, but I do not know how to read each of the files in a loop and send it to JMeter.</p>
  
  <p>Second Question: the data we are talking about here is a JSON msg, and it's indented and <strong>multi-line</strong>, how to read a multi-line file into a <strong>single input variable</strong>? Again, I had no problem when the JSON msg is a single line.</p>