Help for this page

Select Code to Download


  1. or download this
    
    with open ('test.txt', 'n') as f
    ...
    #f.close # not required
    
  2. or download this
    
    f = open ('test.txt','n')
    ...
    f.close() # required