https://findtheansweres.blogspot.com/2020/10/if-we-have-object-from-fstream-class.html