<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Reading high-throughput sequencing files
@SRR001666.1 071112_SLXA-EAS1_s_7
Step1:  Problem
f.readlines is powerful but you just loaded the whole contents of the file into memory.
If the file is 10GB, you may have just crashed your computer!
Solution
Step2:  python
with open("files/simple-file.txt") as f
Step3:  Use the gzip module
<ASSISTANT_TASK:>
Python Code:
f = open("files/simple-file.txt")
for l in f.readlines():
    print(l,end="")
f.close()
Explanation: Reading high-throughput sequencing files
@SRR001666.1 071112_SLXA-EAS1_s_7:5:1:817:345 length=60
GGGTGATGGCCGCTGCCGATGGCGTCAAATCCCACCAAGTTACCCTTAACAACTTAAGGG
+SRR001666.1 071112_SLXA-EAS1_s_7:5:1:817:345 length=60
IIIIIIIIIIIIIIIIIIIIIIIIIIIIII9IG9ICIIIIIIIIIIIIIIIIIIIIDIII
@ line: basic read information
sequence line
+ metadata line
quality score line
Big files
End of explanation
with open("files/simple-file.txt") as f:
    for l in f:
        print(l.strip()) 
Explanation: Problem
f.readlines is powerful but you just loaded the whole contents of the file into memory.
If the file is 10GB, you may have just crashed your computer!
Solution: turn the reader into an iterator
End of explanation
with open("files/simple-file.txt.gz") as f:
    for l in f:
        print(l.strip())
Explanation: python
with open("files/simple-file.txt") as f:
    for l in f:
        do_something(l)
This bizarro syntax goes through the file line-by-line, wiping out each old line with the new one.
What if you have a compressed input file?
End of explanation
import gzip
with gzip.open("files/simple-file.txt.gz") as f:
    for l in f:
        l_ascii = l.decode("ascii")
        print(l_ascii.strip())
Explanation: Use the gzip module
End of explanation
<END_TASK>