Also, serializing using >> and << is not confusing at all. Just write a separator after each value, such as '\n'. You just have to watch out for strings since the default separator is a space.
You won't have to worry about length. You don't have to worry about endianess.