Function ReadFile(strFilePath)
If FileExists(strFilePath) Then
Set fsoReadFile = Server.CreateObject("Scripting.FileSystemObject")
On Error Resume Next
Set fReadFile = fsoReadFile.openTextFile(strFilePath)
ReadFile = fReadFile.ReadAll
If ReadFile = "" Then
Response.write "El fichero está vacio"
End If
If Err <> 0 Then
ReadFile = ""
End If
Set fReadFile = Nothing
On Error Goto 0
Set fsoReadFile = Nothing
Else
Response.write "El fichero " & strFilePath & " no existe"
End If
End Function