DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   File processing, Random-access Files (http://www.daniweb.com/forums/thread114080.html)

hazelle Mar 15th, 2008 2:26 pm
Re: file processing, Random-access Files
 
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");
}

}


}

masijade Mar 15th, 2008 11:04 pm
Re: File processing, Random-access Files
 
And what exactly is your question? All I see is a few unrelated actions.

jwenting Mar 16th, 2008 12:30 am
Re: File processing, Random-access Files
 
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.


All times are GMT -4. The time now is 11:50 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC