You can use a StreamReader for that. I used the Using block syntax in my example, which implicitly closes the file at the End Using line. If you don't want to close the file, don't use a Using block and simply don't call the Close method. I assume you know that an open file cannot be accessed by anything else so you should always close the file ultimately.