| | |
File processing, Random-access Files
![]() |
•
•
Join Date: Mar 2008
Posts: 3
Reputation:
Solved Threads: 0
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");
}
}
}
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");
}
}
}
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
----------------------------------------------
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
![]() |
Similar Threads
- file or database processing in javascript (JavaScript / DHTML / AJAX)
- file processing, Random-access Files (C++)
- Highjack file Ie wont download (Viruses, Spyware and other Nasties)
- Help!..."File Processing" *questions inside* (C++)
- How do you make C++ programs on different computers TALK to eachother? (C++)
Other Threads in the Java Forum
- Previous Thread: frnds!!!!
- Next Thread: Displaying Image and Text in Java 2D
| Thread Tools | Search this Thread |
-xlint 911 actionlistener addball addressbook android applet application array automation binary blackberry block bluetooth button character class client code compile component consumer css csv database desktop developmenthelp eclipse ee error fractal ftp game gameprogramming givemetehcodez graphics gui html image j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia jvm lego linked linux loan mac method mobile netbeans notdisplaying number objects online oriented phone printf problem program programming project projects recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server service set singleton sms software sort sql string swing system test textfields threads time title tree tutorial-sample ubuntu update windows






