Are you opening the C:\Users\Martin\Desktop\New Text Document (2).txt file anywhere in your code? Possibly forgeting to close it after you've used it? Post the method you have written to access and use this file.