Modularized the text file writing function
Wrote ToFastaRecs and ToFastqRecs functions, which write only the given sequences to a text file in the respective format.