i've adapted code found in post remove first line of txt file. need able pass names of test.txt (original file) , testoutput.txt (new file) program. here have far remove first line:
sub main() dim arrtext() string arrtext = file.readalllines("c:\test.txt") using objwriter streamwriter = new streamwriter("c:\testoutput.txt") integer = 1 arrtext.length - 1 objwriter.writeline(arrtext(i)) next end using end sub
i able issue command this-
removefirstline.exe orig.file new.file
-in place of use specific filenames in code.
i new vb, appreciated. i'm aware there similar questions have been asked, have not been able figure out how implement suggestions example.
Comments
Post a Comment