' Read an Entire Text FileConst ForReading = 1Set objFSO = CreateObject("Scripting.FileSystemObject")Set objTextFile = objFSO.OpenTextFile("c:\temp\myfile.txt", ForReading)contents = objTextFile.ReadAllobjTextFile.CloseWScript.Echo contents search for scripts
' Read an Entire Text FileConst ForReading = 1Set objFSO = CreateObject("Scripting.FileSystemObject")Set objTextFile = objFSO.OpenTextFile("c:\temp\myfile.txt", ForReading)contents = objTextFile.ReadAllobjTextFile.CloseWScript.Echo contents
Download Home Scripts Copyright © 2001-2024 adersοft