🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8032

Re: Encrypting/Decrypting stringlist

#8032
From: Remy Lebeau (TeamB)
Date: Tue, 23 Nov 2004 21:08
19 lines
1857 bytes
"roger" <rogersmail@ntlworld.com> wrote in message
news:41a39764$1@newsgroups.borland.com...

> I am using the simple loadfromfile and savetofile... is this not
suitable.?

SaveToFile() supports '\0' characters just fine, but LoadFromFile() do not.
It stops loading on the first '\0' character encountered, even if it is not
the last one present in the data.  If there are indeed '\0' characters in
your file then you will have to load the file into the TStringList manually
yourself so that you can ignore '\0' characters.

The alternative is to not use TStrings as your data container in the first
place.  Using TStream instead of TStrings would probably be more suitable,
and more flexible.


Gambit
Technical Details
Message-ID: <41a3a635$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41a37ce2$1@newsgroups.borland.com> <41a385b5$1@newsgroups.borland.com> <41a3907d@newsgroups.borland.com> <41a3917d$1@newsgroups.borland.com> <41a39362$1@newsgroups.borland.com> <v557q0d2d44dd2ada0vrtv3mslvlpbffue@4ax.com> <41a39764$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8141b40d2daa221d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41a37ce2$1@newsgroups.borland.com> <41a385b5$1@newsgroups.borland.com> <41a3907d@newsgroups.borland.com> <41a3917d$1@newsgroups.borland.com> <41a39362$1@newsgroups.borland.com> <v557q0d2d44dd2ada0vrtv3mslvlpbffue@4ax.com> <41a39764$1@newsgroups.borland.com>
Subject: Re: Encrypting/Decrypting stringlist
Date: Tue, 23 Nov 2004 13:08:02 -0800
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41a3a635$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101243957 68.69.17.41 (23 Nov 2004 13:05:57 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail