Hi,
I was wondering what the command to create an empty text file was. Suppose i wanted to create a .txt file in the C drive called "practice.txt". Anyone know how to create an empty txt file from scratch? thanks
Hey guys,
I have some similar code to that, but for some reason when i run the program on some of the other computers over here, it gives me an error because the file does not exist. it says something about "data path invalid" and ive looked over the code numerous times and it seems like the error is happening because it thinks im trying to open a file that does not exist. Basically, im saying is there any way to create a file without the implied logic that if it doesnt exist, it will be created automatically? The version that PHV wrote is what i do in my program and im getting an error on that line because the file doesnt exist. Thanks
Phv,
yes i have the file permissions in the directory. We have a network here that everyone has access to, and assuming that the person's computer that it doesnt work on is my boss, i would say that they definately have permissions on that network drive. Strangely, the only persons computer my program doesnt work on is my boss's...god punishes us in strange ways. Anyways, i think that my problem is that it is having trouble with the creation of a new, blank file that will be called upon later. All of the text file open statements work in my program except where the file does not exist and it has to create one from scratch. This reasoning is what is making me believe this is the problem. Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.