RandomAccessFile raf = new RandomAccessFile(file, "r"); long networkByte=raf.length()-12; System.out.print("networkByte"+networkByte) ; raf.seek(networkByte); System.out.print(raf.getFilePointer());
Here how to print last 12 bytes .Please help me coding stubs On Fri, Sep 2, 2011 at 5:20 PM, Nikolay Elenkov <nikolay.elen...@gmail.com> wrote: > On Fri, Sep 2, 2011 at 8:46 PM, Naveen <kumarnaveen.si...@gmail.com> wrote: >> i have large mp4 file i want to read last 12 bytes of this file, >> >> long position=filesize.length-12; >> >> plz help me now what to do for read 12 bytes from position > > Use capital letters and punctuation, it helps. > > Have a look at RandomAccessFile, it lets you read/write > from/to an arbitrary position. > > http://download.oracle.com/javase/1.5.0/docs/api/java/io/RandomAccessFile.html > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en