I have a file that my customer saves as a flat print file. It has about 900 lines but varies in length. It is basically records of his clients. When it is saved as a .prn file, it contains lots of un-needed code. However, everything is fairly systematic....meaning I can look for something (say a vbTab) and it tells me I want to save the next string of code until the next vbTab. I have to cut or save this to a temporary file which I can recall if need be to make the reord I want. I have to make four passes (read a line and save a line each 4 times) to get the file the way I want it. It takes less time than I can measure.
Bart -----Original Message----- From: HouseDad [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 9:59 AM To: [email protected] Subject: [vbhelp] RE TEXT FILE MANIPULATION I forgot to mention that the very first line in the file is a header record. I can't institute this into the basic TYPE because it appears only once at the beginning of the file. I can make a separate type for the header, but when I want to PUT to the other records by their record number, will this be a problem? Maybe if for each set of corrections to be made I close and re-open the file, read the header, then use PUT... it should start from where it left off, and from there on it would be the same format. Again, feedback appreciated... Chris '// ======================================================= 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 '// ======================================================= 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/
