Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Editting txt file
#3
lets look at the data (i.e. skip header row). there is space between some columns, but if value has sign, then there is no space. One approach would be to you can use regex to match the values in columns after the first one. In the example first column values has len=4 is this always the case?
Another approach would be to take first 4 chars as column 1 then every 12 chars as value (don't forget to strip leading space if there is one)
Your statement Only the width of 'nodal point' consists of 10 columns and the rest hsas the width of 12 columns in a line is clearly not true.
Reply


Messages In This Thread
Editting txt file - by muhsin - Oct-13-2017, 04:41 PM
RE: Editting txt file - by wavic - Oct-13-2017, 06:28 PM
RE: Editting txt file - by buran - Oct-13-2017, 06:49 PM
RE: Editting txt file - by muhsin - Oct-13-2017, 06:56 PM
RE: Editting txt file - by buran - Oct-13-2017, 07:45 PM
RE: Editting txt file - by buran - Oct-13-2017, 07:57 PM
RE: Editting txt file - by muhsin - Oct-13-2017, 08:00 PM
RE: Editting txt file - by buran - Oct-13-2017, 08:01 PM
RE: Editting txt file - by muhsin - Oct-13-2017, 08:15 PM
RE: Editting txt file - by buran - Oct-13-2017, 08:29 PM
RE: Editting txt file - by Larz60+ - Oct-13-2017, 08:40 PM
RE: Editting txt file - by muhsin - Oct-13-2017, 08:44 PM
RE: Editting txt file - by buran - Oct-13-2017, 08:45 PM
RE: Editting txt file - by buran - Oct-13-2017, 09:15 PM
RE: Editting txt file - by muhsin - Oct-13-2017, 09:31 PM
RE: Editting txt file - by buran - Oct-13-2017, 09:37 PM
RE: Editting txt file - by buran - Oct-13-2017, 09:38 PM
RE: Editting txt file - by buran - Oct-13-2017, 09:47 PM
RE: Editting txt file - by wavic - Oct-13-2017, 10:00 PM

Forum Jump:

User Panel Messages

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