View Full Version : Another Text File question
stevequest
11-27-2006, 02:55 AM
In reference to creating a text file. If you create a new folder and duplicate that code on another page will the program recognize that the folder has already beeen created and ignore the command. If so does it work that way with registry keys too? And is it universal on 98/200/XP?
stevequest
12-07-2006, 12:52 AM
I've apparently stumped some folks with this one but I would appreciate any stab in the dark that someone might have.
Intrigued
12-07-2006, 06:04 PM
Try rewording your need, explaining it in more detail. You may get a better response.
:yes
Bruce
12-07-2006, 06:42 PM
In reference to creating a text file. If you create a new folder and duplicate that code on another page will the program recognize that the folder has already beeen created and ignore the command. If so does it work that way with registry keys too? And is it universal on 98/200/XP?
The second page should over write what the first page created unless you tell it not to. As to the registry… the same should apply.
I will be corrected Steve if I’m wrong so keep an eyeball on your thread ;)
A better approach might be to check for its existence and if it doesn't exist, create it... and if it does exist, continue. Same goes for creating files, folders or registry entries. You want to limit the number of errors you might get by predicting what will happen and acting on it appropriately.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.