Month: October 2008

Read/write file text

The following functions is for reading/writing the entire file content. Imports system.io Public Shared Function ReadTextFromFile(ByVal FullPath As String, _Optional ByRef ErrInfo As String = “”) As String Dim strContents As StringDim objReader As StreamReaderTryobjReader = New StreamReader(FullPath)strContents = objReader.ReadToEnd()objReader.Close()Return strContentsCatch Ex As ExceptionErrInfo = Ex.MessageEnd TryEnd Function Public Shared Function SaveTextToFile(ByVal strData As String,

[How To] Installing CDO for windows 2003

Microsoft Windows 2003 does not have Collaboration Data Objects (CDO) for NTS (CDONTS) nor for Exchange 2000 (CDOEX) installed. Therefore, applications that uses CDONT or CDOEX will not function. To install them use the steps below: 1. Download cdo.zip file. Then extract both (or only one as needed) to %systemroot%system32. 2. Register the files using