Answers for "python IOError"

-2

python IOError

import sys

def FunctionLol():
	try:
		f = open ( "bernie.txt", 'r' )
		except IOError, e:
			print("IOError: " + e)
			print(sys.exc_type)
        
FunctionLol()
Posted by: Guest on February-05-2021

Code answers related to "python IOError"

Python Answers by Framework

Browse Popular Code Answers by Language