2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
7 #include <clib/exec_protos.h>
9 #include <clib/dos_protos.h>
16 LONG r1
=0,r2
=0,r3
=0,r4
=0;
18 file
=Open("testfile",MODE_NEWFILE
);
21 r1
=Write(file
,"hello, world\n",13);
22 r2
=Seek(file
,0,OFFSET_BEGINNING
);
23 r3
=Read(file
,buffer
,19);
28 printf("%ld %ld %ld %ld \'%s\'\n",r1
,r2
,r3
,r4
,buffer
);