File IO functions ready to test