Are you insisting on using RandomAccessFile?
Why don't you use something else like this?
In this code, 10 is the last character in file.
import java.io.*;
public class last_byte
{
...
Type: Posts; User: Banafshe
Are you insisting on using RandomAccessFile?
Why don't you use something else like this?
In this code, 10 is the last character in file.
import java.io.*;
public class last_byte
{
...
Hi,
If you print rcfile.length(), It'll show 27, but this is 26 charachters in your abcd.txt file.
so if you put raf.seek(rcfile.length()-2); the problem will be solved.
may be there is an End...