I know how to check whether required arguments are given on the command line. But how do I check whether the given argument on the command line actually refers to an existing file in the folder I'm running the code in?
I'm trying to incorporate this verification in order to save time by skipping parts of my code in case the file cannot be referenced to.
No comments:
Post a Comment