2/9 My file is not a file?


#1

https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-i3pwf/0/2?curriculum_id=5370f030fed2a866a2000001


Hi again.
An other question :
What's wrong ?


 
mon_fichier = open("output.txt", "r+")

Oups, merci de réessayer. Il semblerait que mon_fichier ne soit pas un fichier.


#2

You can find your answer Click Here.


#3

Hi Bandit.
This is my code but it doesn't still work

mon_fichier = open("texte.txt","r+")


#4

to read from the file just click on the text window and write on a few lines for example,

1. Hi

2. Hey

3. Hello

#5

Like that :

mon_fichier = open("output.txt", "r+")
Hi
Hey
Hello


#6

No I mean in the text.txt file just click on the window next to script.py named text.txt and write on three separate lines. :slight_smile:


#7

Hello.
Can you show me an example please ?
Thak you.


#8

Next to script.py do you see a window that is called output.txt

If you do click on that window and write on the first line, anything.


#9

Thank you but there is a bug on the french version and i found a solution on the french forum:


#10

This is the good link


#11

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.