I posted this question before but i'm rephrasing it now because i realized i was going about it the hard way.
I have a file on my c: drive outside of access that i need to modify. It is a Eudora mailbox file with an extension of .mbx but it is just a text file. I need to "scan" through it for junk text and delete that text (kind of like the find & replace function.) I was working on code to bring it into a table via line input, then delete the junk text and transfer text back to the .mbx file. Was getting close when I realized this is really the hard way to do it because I don't need the text to be brought into a table or access at all. The only reason I'm doing it from access is because that's where the main menu is that my users see is and it's a good place for a button.
Below is a sample of the text. This format repeats throughout the file as each time is a different email message in the mailbox folder. The junk text i want to delete always starts with "The following operations are" and ends before "</x-flowed>" but is usually not the same length or amount of lines in the file. So can anyone help with a way to do this without bringing it a table?
THNX!
-----------------SAMPLE TEXT IN FILE------------------
From ???@??? Mon Aug 25 16:05:54 2003
X-Sender:
X-Mailer: Date: Tue, 12 Aug 2003 12:36:19 -0400
To:
From:
Subject:
<x-flowed>
CASE FILE CONFIRMATION NOTICE
CASE# 1293745682221
UE ID# 0009777162131
DATE: 06/21/2003
REP: J. MYERS
STATUS: PENDING
The following operations are--------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
</x-flowed>


I have a file on my c: drive outside of access that i need to modify. It is a Eudora mailbox file with an extension of .mbx but it is just a text file. I need to "scan" through it for junk text and delete that text (kind of like the find & replace function.) I was working on code to bring it into a table via line input, then delete the junk text and transfer text back to the .mbx file. Was getting close when I realized this is really the hard way to do it because I don't need the text to be brought into a table or access at all. The only reason I'm doing it from access is because that's where the main menu is that my users see is and it's a good place for a button.
Below is a sample of the text. This format repeats throughout the file as each time is a different email message in the mailbox folder. The junk text i want to delete always starts with "The following operations are" and ends before "</x-flowed>" but is usually not the same length or amount of lines in the file. So can anyone help with a way to do this without bringing it a table?
THNX!
-----------------SAMPLE TEXT IN FILE------------------
From ???@??? Mon Aug 25 16:05:54 2003
X-Sender:
X-Mailer: Date: Tue, 12 Aug 2003 12:36:19 -0400
To:
From:
Subject:
<x-flowed>
CASE FILE CONFIRMATION NOTICE
CASE# 1293745682221
UE ID# 0009777162131
DATE: 06/21/2003
REP: J. MYERS
STATUS: PENDING
The following operations are--------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
JUNK TEXT-------------------------------------------------------------------------------------------
</x-flowed>

