*/
Want to see what people are talking about? See the latest forum posts.
*/

View java\java\bin\manoveg\client\method.java

networking authentication program 1.0

Submitted By: manoveg
Rating: (Not rated) (Rate It)


package client;
//import server.*;
import java.io.*;

public class method
{
public String sclientclass(String username ,String password) throws Exception
{
 String temp="nothing entered";
 if((username!=null)&&(password!=null)&&(!username.equals(""))&&(!password.equals("")))
 {
  FileWriter fo=new FileWriter("userpass.txt");
 temp=username+"$"+password+"\n";
System.out.println("1 temp "+temp);
 fo.write(temp);
fo.close();
return temp;
 }
 else
{
 FileReader fin= new FileReader("userpass.txt");
 BufferedReader br = new BufferedReader(fin);
temp=br.readLine();
System.out.println("2 temp "+temp);
fin.close();
 return temp;
}


 }

}

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.