blob: 70d32c3a4cdff64aff1ca6be6039a45f2fcf98d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
int testOpen( Fn: str )
{
S: stream = open( Fn, 'r' )
if ( S )
print( 'yes\n' )
else
print( 'no\n' )
}
testOpen( 'open1.lm' )
testOpen( 'this-wont-exist--probably' )
##### EXP #####
yes
no
|