title: File open and read in AWS Glue with Python
body: <p>I have a simple python code below. This is written in desktop, now I want to recreate this to aws glue or lambda, I have to read the testfile.csv from a s3 directory and put to txt just like below. how this open and read can be recreated in aws glue/lambda environment. Any input is appreciated.</p>
  <pre><code>filepath = testfile.csv
  txt = open(filepath).read()
  </code></pre>