Hi Kim,

> Could anyone advise how can I write to the first
> line of a file?

An empty file? A text file or a binary file? Do you have any
preference for objects used?

You can use the filesystemobject to obtain a reference to a
textstream object that'll let you do this. Or you can "open sfile
for random" and write to any byte/character anywhere within the file
randomly. This requires you to have some idea how the files are
structured or be able to logically parse said file to determine the
same.

If the file is an INI file you can use the writeprivateprofile* apis
to do just about anything with it.

If the file is a CSV file or other strongly typed document you can
use ADO.

Regards,

Shawn K. Hall
http://12PointDesign.com/
http://ReliableAnswers.com/

'// ========================================================
    A photographic memory but with the lens cover glued on.





'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to