reading from a file using a function

Hello everyone!
I have a school project Im having issues with, well just one part rather. Here is my code im trying to implement as a function that reads a company address from a file: (this code is functional:)