Hi,I hope someone will help me because I have a problem. I have 2
files.txt. I have to take one element contained in a row of the first
file and find it in the second file.
If in the second file I find the element I want copy the row in which
there is the element and the 9 previous rows. So, in the second file I
will be 10 rows; the last
rows contained my element.
void WriteData (String GPSCANfile,String SPHfile)
{
try
{
BufferedReader gpscanf = new BufferedReader (new FileReader
(GPSCANfile));
BufferedReader sphf = new BufferedReader (new FileReader
(SPHfile));
BufferedWriter file = new BufferedWriter (new FileWriter
("Data.txt"));
.........
}
Someone can help me,please????
Thanks everybody
Andrew Thompson - 19 Jul 2006 18:12 GMT
> Hi,I hope someone will help me because I have a problem.
Only you can help that multi-posting problem, by not doing it.
Andrew T.
Lee Weiner - 19 Jul 2006 22:58 GMT
>Hi,I hope someone will help me because I have a problem. I have 2
>files.txt. I have to take one element contained in a row of the first
[quoted text clipped - 3 lines]
>will be 10 rows; the last
>rows contained my element.
How many lines are in the second file? Is it plausible to load all the rows
of the second file into an array?
Lee Weiner
lee AT leeweiner DOT org