Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to write a data into csv file colmn by column
Forum Updated to NodeBB v4.3 + New Features

How to write a data into csv file colmn by column

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 175 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    swapna v
    wrote on last edited by
    #1

    Hello All,

    how to write data to multiple columns in CSV file. i want write some data in Columns . how to write?
    I have used QTextstream.
    I can able to write a data up to 2 columns. however its printing continuously CPU2,CPU3 data(Red Colour) .
    Actual output should be column by column (Green color)

    Kindly suggest me how to write date in multiple columns
    Capture.PNG

    Regards,
    Swapna

    JonBJ 1 Reply Last reply
    0
    • S swapna v

      Hello All,

      how to write data to multiple columns in CSV file. i want write some data in Columns . how to write?
      I have used QTextstream.
      I can able to write a data up to 2 columns. however its printing continuously CPU2,CPU3 data(Red Colour) .
      Actual output should be column by column (Green color)

      Kindly suggest me how to write date in multiple columns
      Capture.PNG

      Regards,
      Swapna

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @swapna-v
      There isn't much to say. Build each line output as comma-separated values from the columns.in a loop. No reason for it to stop at 2 columns, and nobody can say why you say "printing continuously". Your output seems to show you are saving columns as multiple lines. You don't show your produced CSV file, you don't show the code you write.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved