I have to write three types of linkedlist to a .ser file. I could do the writing part, but when it comes to reading a found a little problem. I can not distinguish between these two types in order to use the explicit cast. Do you know a method in order to use a trick to distinguish them in the writing process.
Thanks in advance