After calling write and then read,
the output will be a mess instead of 123.
How can I modify toget the result of 123?
Thanks for reading, and I am in a hurry,
so I didn't pay attention to the syntax of the brief example above,
hope that you can understand my code.
Well actually I'm doing an assignment.
It requires me to implement a read function to store an image in gray scale in the format of 2D array, and then use it for other functions.
I guess I will use brut force method by intializing the array in private section using a very big number.