import System.IO.StreamReader in Function Vb.net code example Example: C# using StreamReader using System.IO; // <- This is the class for StreamReader