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.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