Can anybody tell me whats wrong with this code:
Nothing is wrong with your code.
On my computer with WinXP it works perfct. Here as Console Application:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
|
Public Sub main(ByJava args() As String)
Dim FNam As String
Dim FNr As Integer
FNam = "C:\Test.txt"
FNr = 1
Open FNam, Output, FNr
Print FNr, "Irgendwas ist hier faul"
Close FNr
End Sub
|
Possibly it helps to mention the class from where Open, Print and Close comes from direct:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
|
Public Sub main(ByJava args() As String)
Dim FNam As String
Dim FNr As Integer
FNam = "C:\Test.txt"
FNr = 1
FileSystem.Open FNam, Output, FNr
FileSystem.Print FNr, "Irgendwas ist hier faul"
FileSystem.Close FNr
End Sub
|
Don't know why it don't run on your computer.
Do you use Win Vista or Win 7, then it can be possible, that your program have no access to C:\.
What is the error message.
As you can see at
[
http://www.jabaco.org/board/p1370-file-o…operations.html ]
the file handling feature was added by Olimilo on September 21st 2009. The latest Jabaco-Version (1.5.2) is from September 1st 2009.
So you have to update your Jabaco.jar. Have you already done it?
The latest Jabaco SVN version is revision 84.
Where you can download and how you can use revion 84, you can read at:
[
http://www.jabaco.org/board/p2941-error-…t.html#post2941 ]
If all don't help, write your error message of the program here.
Greatings
theuserbl