Workshop #3P
n
nCreate a text file called "test1.txt" with the following data:
# Sample data
1 2 3 4 5
# more data
6 7 8 9 10
nCreate another text filed called "test2.txt" with the following data:
# More test data
# With more header info
A B C D E F G
nWrite a script to do the following:
n1. Prompt the user for a filename
n2. Open the file
n3. Read the file into a list of strings.
n4. If the line does not begin with a '#' print the line to the screen.
 

Test your script on test1.txt and test2.txt.

 
 

 
 Return to the Bioinformatics Home Page