Forum

× General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.

Question Reading and Writing Large csv file

  • Md. Shariful Alam Khan
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 1 week ago #12928 by Md. Shariful Alam Khan
Reading and Writing Large csv file was created by Md. Shariful Alam Khan
I have one Delphi Tokyo 10.2 console application which uses TStreamReader & TStreamWrite for reading and writing large (>1 to 4 GB) csv file for Linux. The application runs perfectly in other Linux OS except for CentOS 6 64bit. Unfortunately, that application developed for CentOS 6 64bit. I tried to use CT 6.60 but there TStreamReader is available and TStreamWrite is not available. TStreamReader & TStreamWrite reads/writes without using any CPU usage that's why I used it. How can I do that with CodeTyphon, please help?

P.S.: See the attached screenshot which I got the error in CentOS 6 64bit.
Attachments:

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #12929 by Matis A.
Replied by Matis A. on topic Reading and Writing Large csv file
My suggestion is to use
CT TFileStream for classes unit

CodeTyphon Core Programmer
Last edit: 1 month 1 week ago by Matis A..

Please Log in or Create an account to join the conversation.

  • Md. Shariful Alam Khan
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 1 week ago #12931 by Md. Shariful Alam Khan
Replied by Md. Shariful Alam Khan on topic Reading and Writing Large csv file
TFileStream doesn't have any line by line read/write feature whereas Delphi's TStreamReader/TStreamWriter has that feature. I need to read line by line as I have to add additional text on each line and save to another file. Please help how to achieve it.

Please Log in or Create an account to join the conversation.