Signature (Visual Basic / VBA)
Public Function EveryNthFileLine( _
ByVal vNthLine As Variant _
, ByVal vInFile As Variant _
, ByVal vOutFile As Variant _
, Optional ByVal vAddLineNums As Variant _
) As Boolean
Print every Nth line of a file, starting with line #1. Using 10 for vNthLine would cause this function to print lines #1, #11, #21, etc. Returns True upon success.
Public Function EveryNthFileLine( _
ByVal vNthLine As Variant _
, ByVal vInFile As Variant _
, ByVal vOutFile As Variant _
, Optional ByVal vAddLineNums As Variant _
) As Boolean