Syntax
Public Sub DeleteLine(FileName As String, lineNumber As Long)
This function is used to delete a line in afile by a given the line number.
Parameters
Key | Description |
FileName | Path of a file, value of type String. |
lineNumber | Number of line in a file that needed to delete, value of type Long. |
Return value
No returned value.
Sample
Public Sub main() Dim fileName fileName = "C:VertexWorld.txt" AlertMessage DeleteLine (Cstr(fileName),L) 'L means the line number End Sub
See Also