Home All Groups Group Topic Archive Search About

add modify read plain text file properties

Author
21 Sep 2006 8:55 PM
JOSII
Does anyone know if it is possible to either add, modify or read the
properties of a plain text (*.txt) file using Visual Basic 2005? I know it's
possible with Office Documents like Word or Excel, but I haven't been able to
find any references to plain text files.

Author
22 Sep 2006 1:59 AM
Homer J Simpson
"JOSII" <JO***@discussions.microsoft.com> wrote in message
news:75788C35-0CF7-4169-8846-F82E1C4517DF@microsoft.com...

> Does anyone know if it is possible to either add, modify or read the
> properties of a plain text (*.txt) file using Visual Basic 2005? I know
> it's
> possible with Office Documents like Word or Excel, but I haven't been able
> to
> find any references to plain text files.

Sure. Use a streamreader and streamwriter and manipulate the string.










--
_____                     _    _
|_   _|                   | |  | |
  | |     __ _ _ __ ___   | |__| | ___  _ __ ___   ___ _ __
  | |    / _` | '_ ` _ \  |  __  |/ _ \| '_ ` _ \ / _ \ '__|
_| |_  | (_| | | | | | | | |  | | (_) | | | | | |  __/ |
|_____|  \__,_|_| |_| |_| |_|  |_|\___/|_| |_| |_|\___|_|
        __   ____
       / _| |  _ \
  ___ | |_  | |_) | ___  _ __ __ _
/ _ \|  _| |  _ < / _ \| '__/ _` |
| (_) | |   | |_) | (_) | | | (_| |_
\___/|_|   |____/ \___/|_|  \__, (_)
                              __/ |
Show quoteHide quote
                             |___/