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
#9
When you open a file your cursor position is at the beginning of the file so you can read from that position. When you write to a file the cursor position is at the end if what you have written. Unless you move the cursor (closing and then opening the file or using seek) you cannot read what you've just written.
I am trying to help you, really, even if it doesn't always seem that way
Reply


Messages In This Thread
Newly written .txt file not printing - by Crackity - Oct-16-2017, 06:23 AM
RE: Newly written .txt file not printing - by buran - Oct-16-2017, 07:11 AM
RE: Newly written .txt file not printing - by buran - Oct-16-2017, 11:53 AM
RE: Newly written .txt file not printing - by buran - Oct-16-2017, 12:36 PM
RE: Newly written .txt file not printing - by gruntfutuk - Oct-20-2017, 04:46 AM
RE: Newly written .txt file not printing - by buran - Oct-20-2017, 06:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  My Loop for printing text file goes to infinity Nomex 7 4,502 Feb-10-2020, 03:13 PM
Last Post: buran
  Command line inputs not printing to Log File ijosefson 1 3,444 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