473,386 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

hi , little question please in codegear c++ builder

hi,
using vcl , and trying to use TstringList with ascii(1) as delimiter

TStringList * templist3 = new TStringList;
templist3->LoadFromFile("xxx.txt");
mylist = new TStringList;
mylist->Delimiter = static_cast<char>(1);
mylist->StrictDelimiter=TRUE;
mylist->DelimitedText=templist3->Text.c_str();

this code works fine and all is cool when program runs
problem is when i want to save all
tried

mylist->SaveToFile("xxx,txt");
this way i lost the ascii(1) to a later load :)

tried
for (int i = 0; i < mylist->Count; i++)
{
myfile << mylist->Strings[i].c_str();
myfile << static_cast<char>(1);
}
this way its adding lots of strange \n in the middle of everywhere

please help
thanks much in advance
Nov 25 '07 #1
0 911

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Xproblem | last post by:
FTP Client Engine for C/C++ 2.4 Screenshot - Soft.comFTP Client Engine for C/C++ 2.4. ... System Requirements: Windows C/C++ compiler - Microsoft operating system: Windows 95, Windows 98, Windows...
2
by: Mike Turco | last post by:
I like using the expression builder for a lot of different things but it isn't always available when I want to use it, for example in the code window, or in all of the control properties. I am...
0
by: FluffyCat | last post by:
Last fall I started a series of design pattern examples using PHP5. I think the last pattern I did was the Singleton in January. Getting back to it here is my first cut at the Builder pattern. ...
2
by: sicapitan | last post by:
FYI, with something like this: hotelement = "hotelement"+hotcount; hotspot = Builder.node('div', { id:'hotspot'+hotcount, className:'hotspot', style:''+divstyle }, ) ]);
1
seshu
by: seshu | last post by:
hi every body this is seshu here in the following snipet i am able to see the success msg but i dont know why that row is not getting inserted in mysql table Imports...
7
by: simonZ | last post by:
I have array variable transfer: String transfer which has some data Than I would like to convert this data into string: Which way is more efficient: StringBuilder rezult=new StringBuilder(); ...
8
by: EddieTH | last post by:
Hello everyone, I am new to this forum so I'll give my greetings to everyone! I am using oracle forms builder and reports builder for 1 year now and I have a problem I cannot seem to be able to...
1
by: muler | last post by:
hi, How can i change the default directory CodeGear C++ 2007 uses to save projects? Setting the "Start In" property of the the shortcut doesn't seem to work. And, i couldn't find any option...
2
xarzu
by: xarzu | last post by:
Platform Builder is a tool for building a Windows CE Operating system on your computer and then loading it on a Windows CE device. All this is done through Platform Builder. And I do it all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.