Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Delphi - Append/format A Csv

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-21-08, 05:52
Jyoti Hassanandai Jyoti Hassanandai is offline
Registered User
 
Join Date: Aug 2008
Posts: 1
Question Delphi - Append/format A Csv

Hi,

My application creates a CSV file and enters table data into it. The problem is - when csv file is created by Delphi it will have all the columns format set to GENERAL. Because of this the leading 0's are discarded. To resolve this I amended the code so that I have a pre-created file with column formatting set. Then in the application I copy this file and open it by issuing Delphi file command - append(). The Delphi is opening file correctly but is not writing the data into the csv file opened in this way. While if I amend the file type to .txt it does write the data. Can anyone provide inputs to resolve this issue. Either

1. How to set column formatting of a .csv file from delphi. [The application do write the data when file is created and opened with rewrite() command] OR

2. How I can append to a .csv file which I am copying from a pre-created .csv having the formatting set.

Thanks.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On