Jump to content

How to name columns when writing data to a file


Recommended Posts

For normal ascii data files you can write the column headers before you actually take the data by simply writing the headers as text to the file using the Write Characters to File function.

If you use the separator in that header file that you are using for the spreadsheet data and follow the header line with a CR/LF constant it will show up nicely at the top of your data file and be formatted like you want it to be in Excel as long as you append the file and do not write to a new file.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.