| REM **********************************************************
REM テキストファイル一括取得
REM **********************************************************
Function GetTextFile( strPath )
GetFso
Dim objHandle
on error resume next
Set objHandle = Fso.OpenTextFile( strPath, 1 )
if Err.Number <> 0 then
ErrorMessage = Err.Description
GetTextFile = ""
else
GetTextFile = objHandle.ReadAll
objHandle.Close
end if
on error goto 0
End Function
Function GetTextFileUnicode( strPath )
GetFso
Dim objHandle
on error resume next
Set objHandle = Fso.OpenTextFile( strPath, 1, , True )
if Err.Number <> 0 then
ErrorMessage = Err.Description
GetTextFile = ""
else
GetTextFile = objHandle.ReadAll
objHandle.Close
end if
on error goto 0
End Function
| |