I'm not sure, but when I write to a file that already exists, it simply
overwrites that file. Maybe that doesn't work on Mac or Linux, but on
windows you don't have to delete the file first.

Maarten


On 02/05/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


>   if f <> Nil then

f will never be nil here, with the code given, but it may exist, which is
an error you should check for (since I think f.CreateTextFile will fail in
that case).  I typically do something like:

if f.exists then f.Delete

and then go on with creating the file.  (This is in simple cases; in more
serious apps, I instead move the existing file to some backup file name.)

>     strout = f.CreateTextFile
>     strout.WriteLine userName.text
>     strout.WriteLine MD5( userPassword.text )
>     strout.Close

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to