Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
deleted 1 characters in body
Source Link
Francisco Puga
  • 25.4k
  • 8
  • 52
  • 68

Where are the input file and where do you want to save the output file. For this kind of scripts i think that it's better use absolute paths

Use:

open('/tmp/lista.txt', 'r') 

instead of:

open('/tmp'tmp/lista.txt', 'r') 

I think that the error can be related to this

Where are the input file and where do you want to save the output file. For this kind of scripts i think that it's better use absolute paths

Use:

open('/tmp/lista.txt', 'r') 

instead of:

open('/tmp/lista.txt', 'r') 

I think that the error can be related to this

Where are the input file and where do you want to save the output file. For this kind of scripts i think that it's better use absolute paths

Use:

open('/tmp/lista.txt', 'r') 

instead of:

open('tmp/lista.txt', 'r') 

I think that the error can be related to this

Source Link
Francisco Puga
  • 25.4k
  • 8
  • 52
  • 68

Where are the input file and where do you want to save the output file. For this kind of scripts i think that it's better use absolute paths

Use:

open('/tmp/lista.txt', 'r') 

instead of:

open('/tmp/lista.txt', 'r') 

I think that the error can be related to this