Dear visitor, welcome to Jabaco - Community.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Open Files?
Please help me with syntax. This code is wrong. What is wrong?
|
Jabaco Source
|
1
2
3
4
|
ff=FreeFile()
Open("test.dat", Output) As #ff ; Expected: End of statement
print #ff,"Hello world in DataFile"
close #ff
|
Hi
e-nomad,
what follows is the method recommended by
Manuel:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
|
Dim ff As VBFileHandler
' write
ff = Open("c:\test.dat", Random, ReadAndWrite, Shared)
Call write(ff, "Hello world in DataFile")
Call Close(ff)
'read
ff = Open("c:\test.dat", Random, ReadAndWrite, Shared)
MsgBox readline(ff)
Call Close(ff)
|
Best Regards,
maXim