Refined PA01 - File_IO
+- EncryptionUtility.c +- outRelease (precompiled for UNIX style systems) NOTE: Use Make to compile for Windows systems
This commit is contained in:
parent
9783819b1e
commit
5777809d47
2 changed files with 12 additions and 0 deletions
|
|
@ -237,6 +237,12 @@ void downloadData( const char *fileName, const SquareArrayType data )
|
||||||
writeEndlineToFile();
|
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.
|
// close file.
|
||||||
closeOutputFile();
|
closeOutputFile();
|
||||||
// no return.
|
// 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.
|
// close file.
|
||||||
closeInputFile();
|
closeInputFile();
|
||||||
// returns a Square Array.
|
// returns a Square Array.
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue