Signature (Visual Basic / VBA)
Public Function CommentFile( _
ByVal vInFile As Variant _
, ByVal vOutFile As Variant _
, Optional ByVal vPrefixLine As Variant _
, Optional ByVal vSuffixLine As Variant _
) As Boolean
Add some string to the beginning and/or end of every line of a file. Note: This algorithm does not work well on files containing EOF (^Z) characters, because of known problems with the Open Input statement.
Public Function CommentFile( _
ByVal vInFile As Variant _
, ByVal vOutFile As Variant _
, Optional ByVal vPrefixLine As Variant _
, Optional ByVal vSuffixLine As Variant _
) As Boolean