You could use ADO like Shawn already said. Once you create these recordsets
the first time, you can re-use them. As long as the number of fields and
their positions remain constant. You could check for their existance when
your app starts. When finished, write the text file back out. There is
alot more flexibility when working with recordsets.
Dim rstRecordType1 As New Recordset
'add fields to recordset
rstRecord1.Fields.Append "field1", adLongVarChar, 20
'open the recordset
rstRecordType1.Open "c:\test.dat"
'add records
rstRecordType1.AddNew "field1", "crap"
'save the recordset
rstRecordType1.Save app.path "\RecordType1.dat"
'// =======================================================
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/