NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a textfile in TestStand

What's wrong in this Sequence file?

I try to use the "Microsoft Scripting Runtime".

I open a file to read from (c:\test.txt), and then I try to read the complete file (ReadAll), but it fails?

I can read a line(ReadLine), and I can read a numbers of chars (Read), but not the complete file. Smiley Sad

 

Any ide?

0 Kudos
Message 1 of 5
(10,165 Views)

Sorry, wrong sequence file.

Here is the correct one:

0 Kudos
Message 2 of 5
(10,163 Views)

Hey Axlon,

 

It worked for me just fine.  It came up in the popup just fine.  What version of TS are you using?  I have 4.0.  Are you trying to get it in the report?

 

Regards,

Message Edited by ~jiggawax~ on 09-09-2008 09:42 AM
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 5
(10,156 Views)

I use TS 4.0.

I think it's a Microsoft problem with "Windows Script 5.7"

I try to install "Windows Script 5.6" and then it work, but after one restart, windows popup with a Windows Update.

 

Size: 741 KB - 1,1 MB

 

Install this update to resolve an issue in VBScript/JScript scripts from CScript\WScript hosts, certain built-ins may not function correctly when Standards and Formats in Regional Settings is changed.  After you install this item, you may have to restart your computer.

 

More information for this update can be found at http://support.microsoft.com/kb/951978

 

After this update, the "ReadAll" function failed again Smiley Sad

 

0 Kudos
Message 4 of 5
(10,137 Views)
Yeah you might have to do something like this!
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 5
(10,124 Views)