Lab 6

Objectives: practice with files.

Reading a Fasta file

Fasta is a very common and simple file format for storing sequence data. Here's a description of the format. Write a function that reads a Fasta file that contains a single sequence. Your function called read_fasta(file_name) should return the header and sequence. Note that the sequence can span multiple lines; we assume the file does not contain Fasta comments. Here's an example.

Reading numbers from a file

Write a function called max(file_name) that returns the largest number stored in that file. Here's an example.