I have some files which I need to read. These files have a checksum in a separate file which I obtain. I need to calculate the check sum of the files and check whether it is the same as that listed in a checksum file.
1) I need to read in the each 'byte' of the file and do some arithmetic with it
2) The file is a text file.
Questions
1) How do I read each of the byte value in a Text file. I saw the documentation for 'binmonde', but how do I obtain all the byte values? Would I have to worry about 'virtual' and 'physical' linefeeds?
2) Assuming I could obtain byte values from question 1), would they be in normal base10 notation or something else? Can I use the + operator for addition and trust that the result is 'correct'?
P.S.: the system in use is Solaris.
1) I need to read in the each 'byte' of the file and do some arithmetic with it
2) The file is a text file.
Questions
1) How do I read each of the byte value in a Text file. I saw the documentation for 'binmonde', but how do I obtain all the byte values? Would I have to worry about 'virtual' and 'physical' linefeeds?
2) Assuming I could obtain byte values from question 1), would they be in normal base10 notation or something else? Can I use the + operator for addition and trust that the result is 'correct'?
P.S.: the system in use is Solaris.