I'm using Qextserialport which writes to the serial port as if it was a file (Linux).

Now I also want to generate a log file.

When I have both of these open it seems like I can't write to either of them. Is it even possible to have two files open and write/read from them?

Or do you have to open one and close it, then open the other and close it before using the other.