I am writing data with types as int, char, double, byte, and boolean to and from files.
I have the methods that write my data to the files.
For the reading method, I am having the content of the files put into an ArrayList and then transferring them into a plain array. However in order to do that I have to know what the data type of the file's contents are.
So my question here is:
- How do I check to see what the data type of the contents of a random file is?