+ 1
[SOLVED] when i use the with statement to open a file the print function does not work on command prompt
Spyder https://code.sololearn.com/cHlN23qeYsl2/?ref=app https://code.sololearn.com/cHlN23qeYsl2/?ref=app
13 Respostas
+ 4
Peter Paulinus Polycarp put any python code in between """ your code """
+ 3
why not show your code for us to better understand your problem
+ 3
Here is more Peter Paulinus Polycarp as you may enjoy a good read
https://docs.python.org/3/library/os.html
+ 2
Hello
Please add your code attempt when asking for help so the community can help you. Here are the 8 rules for getting help. https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community
Thank you
+ 2
BroFar it's on my system it works in code playground
The problem is if i create a text file on notepad and try to read and print it either on idle, spyder, or command prompt it will print blank
+ 2
I'm wondering if you have the right GUI configuration Peter Paulinus Polycarp
I'm almost certain if we were to actually see it in person, obviously not here based on your information, we might see a simple solution.
Just tossing this out...
PySimpleGUI.py
https://pypi.org/project/PySimpleGUI/
+ 2
@Brofar I tried creating text file in my ide and it worked, but it won't open an already made file
+ 2
BroFar I tried creating text file in my ide and it worked, but it won't open an already made file
+ 2
+ 2
Any resource or link may help thanks
+ 2
Ok thanks,
+ 1
BroFar I don't much about the OS mudule i'll have to learn it, i didn't get the code working bcs if that