since a file can have any kind of data, i need terminators that wont get mixed
Have the terminator be a unique sequence of characters and also have a header which includes the payload size maybe is simplest thing I can think of