Python Forum
Newly written .txt file not printing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newly written .txt file not printing
#11
(Oct-20-2017, 04:19 AM)Crackity Wrote: Both of the new print commands that I added in an attempt to print out the newly written lines before they were actually overwritten, were added after opening the file and before closing it again. If you look at the code again you should see that the same file is opened and closed 3 different times. So thank you for your reply but I don't think you understood my question. Smile
I understood your question perfectly fine. However it looks like you don't understand that traceback is meaningful only in relation to the actual code that produce it, not some hypothetical imaginary code that you don't bother to post. Among other useful things traceback shows the exact line at or around which is the error. Next time better post actual code that you run and that is producing the error.
Reply
#12
Well done. Glad you got it working from a few clues.

Like a lot of programming, seems obvious once you get it.
I am trying to help you, really, even if it doesn't always seem that way
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  My Loop for printing text file goes to infinity Nomex 7 4,283 Feb-10-2020, 03:13 PM
Last Post: buran
  Command line inputs not printing to Log File ijosefson 1 3,367 Oct-19-2017, 06:41 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020