def main(): if len(sys.argv) != 2: print "This program requires command line arguments." print "The first argument is the filename of the input file." print "The second argument is the filename of the output file." sys.exit() #here i am opening the html file name that contains the tags and text. filename = open(sys.argv, "r") # since i cant import anything i will using pythons list types to do this tags =  for line in filename: # what do i put here to read in the tags? thats all i need so far? print line filename.close() main()
The help i need is dealing with reading the tags? how would one do so? I dont know if i am breaking any rules, but thats that code i have so far. Thank you for helping a complete newb.