Python Forum
How can I solve this file handling issue?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I solve this file handling issue?
#18
Hi,

Just want to give an update that I was able to solve the problem. I rechecked the .csv file and realized that I was receiving all the data but the 513th value and the following multiples of 513th value were not entering in a newline, instead in the same row. For ex. the 513th value and 514th value, were in the same row and the 515th in next row.
I solved this problem by simply adding print("\n") before the f.write('\n'.join([str(x) for x in values])).

Thank you for all those who helped Dance Big Grin
Reply


Messages In This Thread
RE: How can I solve this file handling issue? - by GiggsB - Feb-14-2022, 04:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  File Handling not working properly TheLummen 8 3,575 Feb-17-2024, 07:47 PM
Last Post: TheLummen
  file handling Newbee question middlecope 2 1,579 Jan-18-2023, 03:09 PM
Last Post: middlecope
Star python exception handling handling .... with traceback mg24 3 3,394 Nov-09-2022, 07:29 PM
Last Post: Gribouillis
  Delimiter issue with a CSV file jehoshua 1 2,354 Apr-19-2022, 01:28 AM
Last Post: jehoshua
  File handling issue GiggsB 4 2,481 Mar-31-2022, 09:35 PM
Last Post: GiggsB
  How to solve this file handling issue? GiggsB 3 2,462 Jan-10-2022, 09:36 AM
Last Post: Gribouillis
  File handling knollfinder 3 2,720 Jun-28-2020, 07:39 PM
Last Post: knollfinder
  Writing to File Issue Flash_Stang 3 3,323 Jun-05-2020, 05:14 AM
Last Post: Gribouillis
  file handling sivareddy 1 2,122 Feb-23-2020, 07:28 PM
Last Post: jefsummers
  Simple Read File Issue blackjesus24 4 3,648 Feb-09-2020, 12:07 AM
Last Post: blackjesus24

Forum Jump:

User Panel Messages

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