Ah.... You are posting VB.NET code in the VB 4/5/6 Forum.
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
Dim reader() As String
reader = File.ReadAllLines(spath)
length = reader.GetLength(0)
If length=0 then your file is empty. I didn't checked this method with .xml, but with .txt it is working.
martonx
Junior Poster in Training
51 posts since May 2008
Reputation Points: 10
Solved Threads: 8