Hi All,
I want to read a text file into a variable, and then replace some text, and then re-save or copy to the clipboard the end result.
If I use Read File to read in the content of the text file which has formatting e.g., a text file that contains an email with paragraphs, signature, etc, will the result of the variable that I put it in maintain all that formatting, or will it just strip out everything?
Read File maintain formatting?
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Read File maintain formatting?
Depends on the type of file. Obviously ReadFile won't work with a .doc file. If you use it against an RTF file it will read in all the RTF markup, so it will stay intact. A plain ANSI text file won't have formatting anyway.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Read File maintain formatting?
Awesome. Thanks Marcus..