diff --git a/PA01-0906/EncryptionUtility.c b/PA01-0906/EncryptionUtility.c index 5b5bfef..c4a5471 100644 --- a/PA01-0906/EncryptionUtility.c +++ b/PA01-0906/EncryptionUtility.c @@ -237,6 +237,12 @@ void downloadData( const char *fileName, const SquareArrayType data ) writeEndlineToFile(); } } + else + { + // if the file doesn't open, notify the user. + printf("\nThe file either doesn't exist," + "or you do not have permission to access it.\n"); + } // close file. closeOutputFile(); // no return. @@ -452,6 +458,12 @@ SquareArrayType *uploadData( const char *fileName ) } } } + else + { + // if the file doesn't open, notify the user. + printf("The file either doesn't exist," + "or you do not have permission to access it.\n"); + } // close file. closeInputFile(); // returns a Square Array. diff --git a/PA01-0906/build/Release/outRelease b/PA01-0906/build/Release/outRelease index 5ef0f69..b8f0a92 100755 Binary files a/PA01-0906/build/Release/outRelease and b/PA01-0906/build/Release/outRelease differ