ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   need to add string to txt file (https://www.excelbanter.com/excel-programming/352627-need-add-string-txt-file.html)

Leech

need to add string to txt file
 
Hey!

need to write "//" to the end of a last string of a simple txt file.

dim nf as integer

nf = freefile

open lpfilename for binary access write as nf
put nf, LOF(nf), "//"
close nf

but there is an uprintable symbol appears between last charcher and "//".
pls advise how this can be avoided. thanks!


All times are GMT +1. The time now is 08:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com