title: Is there a way to Continuously write streams(line-by-line) in S3
body: <p>Can Anyone please suggest me the way or sample code to write data (line-by-line)  into S3.</p>
  
  <p>Its like a stream coming in to some file, as soon as my program receives each line, it has to be written in S3.
  So I need only one buckets for that and one file in s3. </p>
  
  <p>Sample input :</p>
  
  <pre><code>String lines[] = ["This is first line","This is Second line", "This is Third Line"]
  
  s3 Initialization,...etc
  itererator i = lines;  
  while (i.hasnext())
  {
      s3Service.putObject(testBucket, i); // Write each line in S3
  }
  </code></pre>
  
  <p>Please check the flow and suggest me with code sample.</p>
  
  <p>Very much appreciated...</p>