It seems the only difference betweens binary or text is how to translate \n to end of line. So it seems not a good ideal to detect whether a stream is binary or text
Oh wait, I thought you asks about whether or not a file is being opened.
In this case, would that be efficient if you store what the user input? Opening file requires specific mode, this should've been stored somewhere on your own.
Hanz
ZM
● Igor
Pavel
𝗝ลѴỈ3𝚪Θ
Hussein
Lyroy
Ludovic 'Archivist'
MᏫᎻᎯᎷᎷᎬᎠ
\Device\NUL
r
Captain
Rasel
John
Deleted account