Re: write on line number two (2) of the file

"brucexs-/[email protected] [power-pro]" <[email protected]> 17 Mar 2019 10:40:01 +0000
Newsgroups gmane.comp.windows.power-pro
Message-ID <[email protected]>
Method 1:   file.readall, replace second line with string operations, file.writeall.
 

 Method 2:  use file.writeline to read then write first two lines only.  This requires the file to be a text file and to use "newlines" (CR, LF, or CR/LF I think).    See help on file plugin for details on readline, writeline, open, close, etc.
 

 Method 1 will work in general.  Method 2 depends on having newline-terminated text files and  on file I/O routines implemented as part of the Windows C runtime package.  I don't know if it will work for your files.
 

 Unless the file is much too big, I'd use method 1.  
 

 There may be others using the binary plugin.  I'll leave exploring those for you, if you want.