File Read - Python

""" python v2.7.9"""

print("[+] Read whole File [+]")
with open("file.txt") as line:
print(line.read())


print("[+] Read line by line [+]")
with open("file.txt") as line:
for txt in line:
print("Lines: "+txt.rstrip())

Comments

Popular posts from this blog

JTAG PIN Identification

CWE vs CVE