File Interaction for Test Scripts - Michael Kelly

7 downloads 481 Views 1MB Size Report
File interaction is a fundam ental building block of powerful test scripts. Everything is .... For reading, we'll want input mode and read access: For writing, we'll ...
!

!

!" #$ !" % $

$ !"

& #

"#$

% &&

!" &

&

'

$

( &

)

)

(*

$

$

& % && '( Close

+

EOF

+

FreeFile

*

Get

*

Input Function

*

Input Statement

*

Line Input

*

Loc

*

Lock

,

LOF

*

Open

-

Print

/

Put

'

Reset

+

Seek Function

*

%

#.-

Spc

-

Tab

0

Unlock

*

1

Width

2

3

Write

' %

FileAttr

*

FileCopy

+

FileDateTime

*

FileLen

*

GetAttr

*

Kill

4

Name

*

SetAttr %

%

ChDir

+

ChDrive

+

CurDir

*

Dir

*

MkDir

0

)

*

' $

!"

$

$

#

&

5

6 7

$ $

# 8

$

7

( ;
$ #

#$

'

#$

# #$

#

$ # %

7

null

%

# FileReadLine '

$ InStr

!"

InStr

#

FileReadLine

$

1 2

#

(

7

InStr

$ 6

:

=

' '

Right

!"

= lineFromFile

=

' lineFromFile

Len

InStr

7

#

7

' $ '

$ % $

%

If

7

declare

' $

'

7

7

%

)

%

&% FileCreateFromClipboard #

%

%

/4

+ /4

-

$

/4 H+ %

#!

FG

! +##

! +## $

% '

!

$

FileOpen FileWriteLine

'

Clipboard.GetText

!"

7

FileClose '

$

7

declare

'

7

+

-

1#

2

%

) # # '

$

$ *

$

% B

#

# :

+ &

0

3

#

8 $ *

% (III 8 %