This one has been bugging me alot iv got a program which loads in a .txt file into a text box automaticly when the application starts but there is one problem i have if the .txt is deleted the program wont start so is there a way to include a code into a IF statment so the code will find if the .txt file exists and if it dosent to ignore it or creat the missing file. this would be great help because its really bugging me. thanks in advance.
Edit: iv also found that the visual basics 6 package and deploy dont seem to creat direcotories or if you can please let me know anyway if you can i need some help on some code that can build a new directory such as C:/ program files/myapp/logs. i need this code for when the program is first ime run or it could be at form_load so that when you 1st start the program the new directory is created as i want to store my programs logs in a seperate folder insted of in the app.path directory.
Last edited by andy26 on Wed Aug 29, 2007 12:06 am; edited 2 times in total
Edit: iv also found that the visual basics 6 package and deploy dont seem to creat direcotories or if you can please let me know anyway if you can i need some help on some code that can build a new directory such as C:/ program files/myapp/logs. i need this code for when the program is first ime run or it could be at form_load so that when you 1st start the program the new directory is created as i want to store my programs logs in a seperate folder insted of in the app.path directory.
Last edited by andy26 on Wed Aug 29, 2007 12:06 am; edited 2 times in total
