Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How to read text file

Reply
 
Old 09-25-2008   #11 (permalink)
Pegasus \(MVP\)


 
 

Re: How to read text file


"Henrique" <wq@xxxxxx> wrote in message
news:newscache$rezq7k$xr6$1@xxxxxx
Quote:

> Hi!
>
> Ok. I have two solutions but dont work in my VBScript project.
>
> If the text file is in Unicode, the NotePad open it without problems?
>
> I´m using un SCADA software, with VBScript and Im testing the script in
> VB6.
>
> Sory my English
>
> Thanks
>
Notepad.exe can process files in ASCII or Unicode format. You can see the
file type under "Save As" in the encoding box. To generate a Unicode file,
open the "Encoding" box and select "Unicode".

If your version of the script does not work with Unicode files then there is
something wrong with the code. You should post it so that someone can tell
you how to fix it. I tested my own version after adjusting it for Unicode
operation and it worked just as expected.



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Read a line from a text file, without loading the entire file inmemory PowerShell
How to read and write a text file? VB Script
Read a huge text file from bottom up PowerShell
How do I read a text file and sort text by fixed positions? PowerShell
Using ADO to read a text file PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46