Posts

Showing posts with the label File Read

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())