Simple implementation of go-back-n file transfer for text files - originally part of an old assignment