trunkfile.py
Go to the documentation of this file.
00001 #!/usr/bin/python
00002 
00003 fd = file('refman.tex','r')
00004 fd2 = file('filelist.tex','w')
00005 
00006 line = fd.readline()
00007 while line.find('Module Index') < 0:
00008     line = fd.readline()
00009 
00010 fd2.write(line)
00011 line=fd.readline()
00012 
00013 while line.find('printindex') < 0:
00014     fd2.write(line)
00015     line=fd.readline()
00016     
00017 fd.close()
00018 fd2.close()


kni
Author(s): Martin Günther
autogenerated on Mon Aug 14 2017 02:44:13