I urgently require a tip which will execute some simple unix commands (eg. "ls" or "cd" etc. )in a remote unix server where i have permissions (user id and passwd) .I am using the following code....
import sun.net.*;
import sun.net.ftp.*;
import java.io.*;
class myftp1
{...
I am using this code for file reading here i am supposed to take Strings ,ints,
FileInputStream fin=new FileInputStream(args[0]); //reads file
BufferedReader br = new BufferedReader(new InputStreamReader(fin));
I am using br.readLine() for reading Strings ...It works fine
But...
I am supposed to get the inputs from a file .The inputs are integers , Strings ,longs and date-time. Is there any trick to validate that the inputs are in proper format .If not then an error message should flash.
The program should not be in servlet or jsp.
Please Help........
I have a problem to get the files in a remote machine where we have the permission as a user.We r supposed to get some files(.txt) from there . We are getting NullpointerException
Anybody can help ???
The code is as follows...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.