python read vcf file line by line code example Example: python read vcf file line by line with open('example.vcf', mode='r') as vcf: print(vcf.read())