Transposition cipher encryption - File functions