File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes RandomAccessFile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "RandomAccessFile" Watch "RandomAccessFile" New topic
Author

RandomAccessFile

Doit
Ranch Hand

Joined: Aug 03, 2000
Posts: 169
Hi,
Why is this code not creating any file , even it does not exist
in the place??
- Thanks
import java.io.*;
public class a{
public static void main(String args[]) throws IOException
{
try{
RandomAccessFile f= new RandomAccessFile("c\\Java\\xx.txt","rw");
System.out.println("true");
System.out.println(f);
}
catch( IOException ie)
{System.out.println("Exception");
}
}
}
Doit
Ranch Hand

Joined: Aug 03, 2000
Posts: 169
I take this back!!!
I was so stupid...
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hi,
what was the prob?
newtojava
Doit
Ranch Hand

Joined: Aug 03, 2000
Posts: 169
The path i was looking at is wrong..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RandomAccessFile