I need to read a list of names from different files using python and produce the list of names that appear the first time from each file. Help!!
Jump to Post
@Sue_2 You can improve this by opening the ouput file only once. Also, you can use fileinput to iterate over the lines of many files
with open('merge_BLASTP_results.out', 'w') as f: for line in fileinput.input(glob.glob('/Users/sueparks/BlastP_Results/*')): f.write(line) # write lines to new file
*may be a …
All 7 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.