Hi Chris, > This would work if I re-write the file every time, > loading all the fields from all of the records in > the file to an array, but there's about 100 different > records in the file, which are three lines each, with > maybe 40 or so fields per line...
Then why are you wanting to use a text file? Not to burst your balloon or anything, but this is recreating the wheel in oh-so-many ways. Use ADO. Use a database (even a flat-file or csv file can be a database!). REGARDLESS of how you code, the file itself will actually have to be rewritten (at least 4k) for every time you change even a single bit. This is just the way disk I/O works, and you're not gaining anything by trying to minimize the overhead and avoid ADO. In fact, recreating the wheel usually ends up costing you more time and money than it will EVER be worth. Well, maybe you'll get the whole "hindsight is 20/20" vantage point that making bozo nono errors generally provides you, but aside from that, you really gain nothing. Regards, Shawn K. Hall http://12PointDesign.com/ http://ReliableAnswers.com/ '// ======================================================== "That guy's the sharpest grape on the bunch!" '// ======================================================= 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/
