I am developing a program for printing serial.
But i am stuck on how to detect if folder is existing.
Sample folder name is "C:\\PrintLogs"
This folder will be use for Pringlogs.txt.
I want to detect if existing. If existing i will not create
new folder. If not then create new one.
I might be wrong but that might be platform dependent. I know file checking is a pretty universal thing, but Checking for a folder might be dependent on file system.
heh, sorry i wasn't much help earlier, Umm post some of your code and I'll give it a look. Unless you havent got any for the function(s) your working with, in which case, let us know what system your running.
In Unix, you can attempt to open the directory with opendir. On Windows, you can use FindFirstFile to get information about the directory. If these functions fail, they're not available to you (either they don't exist or you don't have access).