rdd = sc.textFile("test_file.txt").cache() rdd.collect()
The above returns me this:
[\'my number is 0\', \'my number is 1\', \'