Any help would be greatly appreciated.
Public Function GetFile(ByVal JobName As String, ByVal
FileName As String)
{I have left out where I determine the directory structure
on the server for finding the file based oon the first
parameter passed into the funtion. }
Dim FS As New FileStream(sTempStr, FileMode.Open,
FileAccess.Read)
Dim Reader As New StreamReader(FS)
Dim Contents() As String = New String(5000) {}
x = 0
While Reader.Peek <> -1
Contents(x) = Reader.ReadLine
x += 1
End While
Reader.Close()
FS.Close()
Return Contents