A
Andrea
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
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