Python Forum
Writing values at a desired column in a line of text file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing values at a desired column in a line of text file
#1
I have a array which has 5 values and I want to write it in a text file with 1st value starting from 1st col and second value from 7th col and 3rd value from 10th column of a single line.. is there any way to formate that array and write it in to a file ? Can anyone pls guide me on how to do it..?
Reply


Messages In This Thread
Writing values at a desired column in a line of text file - by Gupta - Jul-28-2017, 06:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get an average of the unique values of a column with group by condition and assign it klllmmm 0 322 Feb-17-2024, 05:53 PM
Last Post: klllmmm
  Help copying a column from a csv to another file with some extras g0nz0uk 3 498 Feb-01-2024, 03:12 PM
Last Post: DeaD_EyE
  Converting column of values into muliple columns of counts highland44 0 272 Feb-01-2024, 12:48 AM
Last Post: highland44
  Capturing BS4 values into DF and writing to CSV cubangt 18 2,000 Sep-05-2023, 01:57 PM
Last Post: cubangt
  save values permanently in python (perhaps not in a text file)? flash77 8 1,272 Jul-07-2023, 05:44 PM
Last Post: flash77
  File "<string>", line 19, in <module> error is related to what? Frankduc 9 12,652 Mar-09-2023, 07:22 AM
Last Post: LocklearSusan
  Getting last line of each line occurrence in a file tester_V 1 889 Jan-31-2023, 09:29 PM
Last Post: deanhystad
  How to read csv file update matplotlib column chart regularly SamLiu 2 1,087 Jan-21-2023, 11:33 PM
Last Post: SamLiu
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,154 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  Json filter is not capturing desired key/element mrapple2020 1 1,162 Nov-24-2022, 09:22 AM
Last Post: ibreeden

Forum Jump:

User Panel Messages

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