Hi again,
My intention is to read the 1st line from the text file using the
following code:
OPEN ATTACHMENTPATH FOR INPUT ACCESS READ SHARED AS _
NFILE LINE INPUT #NFILE, STRLINE
CLOSE #NFILE
'...(1) [/b]
AND WRITE TO THE SAME FILE USING THESE CODES:
[b]OPEN ATTACHMENTPATH FOR OUTPUT ACCESS WRITE LOCK READ _
WRITE AS HFILE
PRINT #HFILE, \"TEST MSG\" , STRINPUT
'...(2)
However, the message from (2) is not written to the text file even
though I have closed the file (1) and re-opened it for writing (2).
Thanks again!!!
------------------------------------------------
~~ Message posted from
http://www.ExcelTip.com/
~~ View and post usenet messages directly from
http://www.ExcelForum.com/