File processing, Random-access Files

Reply

Join Date: Mar 2008
Posts: 3
Reputation: hazelle is an unknown quantity at this point 
Solved Threads: 0
hazelle hazelle is offline Offline
Newbie Poster

Re: file processing, Random-access Files

 
0
  #1
Mar 15th, 2008
hi!...this my code,,,and i knew there"s something wrong with it,,,or maybe something is lacking..would you mind to help me?...i need a very quick response..thanks....Godbless you...


import java.io.*;

public class Samplefile {

public static void main(String args[])
{
File fob1 = new File("dede.txt");
RandomAccessFile rob1 = new RandomAccessFile("Hector.txt","rw");
if exists("dede.txt")
{
System.out.print("meon");
}

}


}
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,278
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 242
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: File processing, Random-access Files

 
0
  #2
Mar 15th, 2008
And what exactly is your question? All I see is a few unrelated actions.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,145
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: File processing, Random-access Files

 
0
  #3
Mar 16th, 2008
nothing wrong with that code, purely going on syntax and grammar...
Of course depending on what you want to achieve there's a lot MISSING from it as it doesn't do much of anything.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC