Working with and external file