|
-
Nov 19th, 2000, 02:16 PM
#1
Thread Starter
Dazed Member
Can anyone show be a basic example of input out with Java.
I can do this in vb in two seconds with vb but with java
it seems to be a pain in the A%@....
import java.io.*;
class iotest{
public static void main(String[] args){
int chararacter;
byte[] hold;
FileDescriptor in = new FileDescriptor("C:\iotest");
FileInputStream fileinputstream = new FileInputStream(in);
while((character = FileInputStream.read(byte[] hold) != -1){
System.out.println("Reading Data");
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|