IBM Interview Question

write code for how the file can be initiated and read from it?