Hi team,
This time i am trying a JZOS program under OMVS.
It is simple, read a text file and show each line, here is the code:
import java.io.*;
class readit
{
public static void main(StringÝ~ args)
{
System.out.println("Prog start");
BufferedReader bf = new BufferedReader(new FileReader("datos.txt"));
String recline;
while ((recline = bf.readLine())¬=null) {
System.out.println(recline);
}
System.out.println("Prog end");
}
}
but i got this message when compiling :
: >javac readit.java
readit.java:10: unexpected type
required: variable
found : value
while ((recline = bf.readLine())¬=null) {
¬
1 error
the "=" simbol is not a variable, i have no idea why this error
appears, when compiling in Windows environment it goes OK, but in OMVS
appear such error.
Some ideas?
Best regards,
Enrique
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN