system() Calls

Hello,

I've got 2 problems i'm hoping someone can help me with.

Problem 1:
I've written a program that creates folders or directories on the user's hard drive however the directory the program creates sometimes already exists. This produces a message on screen saying the directory already exists. I don't want the user to see this since the user should never have to deal with those directories. Is there some way to first check if a directory exists before attempting to create it?
I use the system function MKDIR to create the folers.

Problem 2:
I'm familiar with system("CLS") to clear the entire screen however is there some way to only clear a specific section of the screen without clearing the rest of it?

Thank you very much!

(Using Windows XP and Dev-C++)
Last edited on
Topic archived. No new replies allowed.