Help! I know how to create files using a Save dialog box, but I can't
figure out how to create files without using a Save dialog Box. When I
try to define an AbsolutePath Property for a FolderItem, for example,
I'm told that I can't set that Property.
Here's the situation. I need to create 730 almost-idenical HTML files.
The easiest way to do that is to use a loop. Here is the content of a
sample file, C:\A\123.html::
<html>
<head>
</head>
<body>
<embed src="../MIDI/123.mid"
autostart="true" hidden="false" loop="false">
<noembed> <bgsound src="../MIDI/123.mid" loop="1">
</noembed></embed>
</body>
</html>
In pseudo-code, here is what I'm after:
For I = 1 to 730
Create/open an [I].html file
Write contents, referring to [I].MID
Close file
Next I
Maybe I can't see the forest for the trees (there's an entire chapter on
working with files in the User's Guide), but I can do everything except
create/open the files. If I can get the file open, I can write to it
exactly what I want, I can close it, and I can move on to the next. BUT
I can't figure out how to create/open the file! <sigh>
I know I'm missing something simple here. Can anyone supply some
assisance?
Barry Traver
P.S. I know that it's generally not recommended to set a particular
path such as "C:\A\123.html," but this is a project specifically for me
to do on my own computer.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|