0

Hello everybody, What is wrong with this code. It doesn't read the text which is written inside comment lines. Please, help mee

https://code.sololearn.com/ca4a20A151A2/?ref=app

13th Feb 2021, 4:15 PM
Phidan Makhmudova
5 Réponses
+ 2
There is no text1.txt file but i found touch file in bin/touch
13th Feb 2021, 4:56 PM
Abhay
Abhay - avatar
+ 2
Phidan Ok i see , but if the path is right for that text1.txt then it should work fine as it did when i tried reading bin/touch file.
13th Feb 2021, 5:25 PM
Abhay
Abhay - avatar
+ 2
Phidan sorry can't help much then , i tried using a different compiler and ide , created a text1.txt file and was even able to read it successfully. just wait for others ti help you out , good luck.
13th Feb 2021, 5:48 PM
Abhay
Abhay - avatar
0
Abhay I don't know what the touch file is. With my own compiler, i wrote the code to create a text file firstly.Here i put it inside the comment line just for explaining how i made this text file. then tried to print it out but failed.
13th Feb 2021, 5:23 PM
Phidan Makhmudova
0
Abhay It doesn't work:( i also created different files, writing on files is ok, but i can't print them out every time.
13th Feb 2021, 5:29 PM
Phidan Makhmudova