PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming RE: modify a .txt file programatically

Reply

RE: modify a .txt file programatically

 
Thread Tools Rate Thread
Old 06-08-2004, 07:11 PM   #1
=?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ==
Guest
 
Posts: n/a
Default RE: modify a .txt file programatically


Yes, you are on the right track - VB's intrinsic Open statement allows for
basic file I/O operations.

I prefer using the TextStream object from the Microsoft Scripting Runtime
Library - it is easier and more intuitive to use.

FYI, this topic isn't really related to Outlook VBA. You should direct
further posts on this subject to microsoft.public.vb.general.discussion or
microsoft.public.scripting.vbscript.

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/

"V.Chu" wrote:

> I wrote a VB module to transfer every new e-mail(report) from outlook inbox
> to a txt file,but when I open up the .txt file, it actually contains the
> from, send subject lines,
>
> Is it possible to open up this txt file programatically delete them??
>
> From: Peter Pan
> Sent: Friday, August 06, 2004 3:10 AM
> To: John smith
> Subject:Q2 report
>
> Finanical Q2 Report
> 1111 1111
> 1111
> 222
> 333
> 445
> 556
> 777
>
> I suppose that there are some codes like
>
> Close #1
> Open stFullpath For Output As #1'???
> :
> :
> :
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off