venture of iit bombay vjti alumni tryopen file stream file open(file_name" "except ioerrorprint "there was an error writing to"file_name sys exit(print "enter '"file_finishprint "when finishedwhile file_text !file_finishfile_text raw_input("enter text"if file_text =file_finishclose the file file close break