Norman Palardy wrote:
On Jun 15, 2006, at 11:26 AM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
Hi.
I am writing a program with Mac OSX, and I am able to create a file
using :
file=Volume(1).Child(<folder>).Child(<file>)
However, I also want to write the same file when compiling for
Windows32 systems (98/Me/XP). (my beta tester has a windows xp
system...)
I have tried using
if TargetWin32 then
file=("c:\myfile.txt")
end if
However, it fails. Any idea of what I am doing wrong?
Regards
Michael
Use the same mechanism as you do for OS X
You may need to check for different folders, but the same mechanism
works
The C: drive is usually Volume(0) (the boot volume). Unless there is
another drive, Volume(1) might be Nil. Could that be what's causing your
problem using the 'Volume.Child.Child' approach?
Ken
_______________________________________________
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>