Guest_imported
New member
- Jan 1, 1970
- 0
How to Display the string from a Textfile in a MsgBox, ...
<%code:
Dim FSO
Set FSO = WScript.CreateObject("WScriptin.FileSys..."
Const FILEPATH = "D:\Sefiroth\Library\Logs\Lynx.log"
Dim Text
Set Text = FSO.OpenTextFile(FILEPATH)
Set ReadText = Text.ReadAll
MsgBox ReadText, vbInformation + 0, "Filecontents:"
'''Error = Line6: Object required[string:"xxxxxxx"] ???
'''then import it for an addition 'n finally overwrite it?
Text.ReadAll
MsgBox Text, vbInformation + 0, "Textinhalt:"
Text.Close
FSO.CreateTextFile("FILEPATH", True)
Dim NewTime
NewTime = Now
Text.WriteLine NewTime
'''Error = Cannot use parentheses while calling a sub.
:code%>
<%code:
Dim FSO
Set FSO = WScript.CreateObject("WScriptin.FileSys..."
Const FILEPATH = "D:\Sefiroth\Library\Logs\Lynx.log"
Dim Text
Set Text = FSO.OpenTextFile(FILEPATH)
Set ReadText = Text.ReadAll
MsgBox ReadText, vbInformation + 0, "Filecontents:"
'''Error = Line6: Object required[string:"xxxxxxx"] ???
'''then import it for an addition 'n finally overwrite it?
Text.ReadAll
MsgBox Text, vbInformation + 0, "Textinhalt:"
Text.Close
FSO.CreateTextFile("FILEPATH", True)
Dim NewTime
NewTime = Now
Text.WriteLine NewTime
'''Error = Cannot use parentheses while calling a sub.
:code%>