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");
}

}

}

Recommended Answers

All 2 Replies

And what exactly is your question? All I see is a few unrelated actions.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.