File Creation

Abhishek Dutt



0 snippets

file = '/Users/Test/test.txt'

try: open(file, 'a').close() except OSError: print('Something went wrong, file not created! ') else: print('File created')

No results

There are no results that match the criteria.

Codiga Logo
Codiga Hub
  • Rulesets
  • Explore
  • Cookbooks
  • Playground
soc-2 icon

We are SOC-2 Compliance Certified

G2 high performer medal

Codiga – All rights reserved 2022.