import re

f = open("file.txt",'r+')
pata = f.read()
comp = []
comp.append(re.findall(r"^\w[a-zA-Z0-9-.]*",pata,flags=re.MULTILINE))
f.close()
print(len(comp[0]))
print(comp[0])
g = open("pipdep.txt","w+")
for l in range (1,len(comp[0])):
    g.writelines(str(comp[0][l]))
    g.write("\n")
g.seekable()
g.close()
