mohan reddy

Greenhorn
+ Follow
since May 14, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mohan reddy

HI,
Basically i need to appand data to the logfile.If there is Duplicate data it should not tbe appended..
Here is the piece of code that i have written to append... Any one could help me how to restrict the Duplicate values not to append to the LogFile..
FileWriter frw = null;
File logFile = new File (logPath);
if(logFile.exists() == true)
{
try{
frw = new FileWriter(logPath, true);
}catch(IOException e){
System.out.println("LogPath :Failed -"
+ e);
}
}
else
{
try{
frw = new FileWriter(logFile);
}catch(IOException e){
System.out.println("LogPath :Failed -" +
e);
}
}
thanks for you'r Help..
Mohan
22 years ago