468,496 Members | 1,790 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,496 developers. It's quick & easy.

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 791

Post your reply

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

Similar topics

reply views Thread by Xproblem | last post: by
2 posts views Thread by Mike Turco | last post: by
reply views Thread by FluffyCat | last post: by
7 posts views Thread by simonZ | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.