mynewcat
08-14-2006, 01:07 PM
I'm creating a file that I will be writing data into - I will be writing an xml file. I'm at early stages yet, and I'm making good progress - apart from the fact that once I have created and written to a file, I cannot seem to close it.
The below code is the portion I use - it seems to create and edit the file correctly, but once that's done, and I attempt to delete it, I'm told the file isn in use.
Likewise, if I drag it into explorer edit it, then save, it says it cannot create the file.
what's wrong with the closing code I am using?
thanks.
-- writing the xml file package
-- what shall we call the XML file?
thexmlfile = thehtmlpath + edit_object_name.text + ".txt"
--create the new xmlfile
createFile thexmlfile
--open the xmlfile for editing
fxml=fopen thexmlfile "a+"
--writing data into the xml file
WriteString fxml "String"
fclose fxml
The below code is the portion I use - it seems to create and edit the file correctly, but once that's done, and I attempt to delete it, I'm told the file isn in use.
Likewise, if I drag it into explorer edit it, then save, it says it cannot create the file.
what's wrong with the closing code I am using?
thanks.
-- writing the xml file package
-- what shall we call the XML file?
thexmlfile = thehtmlpath + edit_object_name.text + ".txt"
--create the new xmlfile
createFile thexmlfile
--open the xmlfile for editing
fxml=fopen thexmlfile "a+"
--writing data into the xml file
WriteString fxml "String"
fclose fxml
