i have a txt file.
ex:
dmk.del.423543.dffd555.23434
dmk.del.423543.dffd555.23435
dmk.del.423543.dffd555.23436
dmk.del.423543.dffd555.23437
sample.txt
i have to read the content of the sample txt file by line by line...
Please let me know what modifications i have to do in the following code..
class SampelRead
{
public static void main(String[] args)
{
try{
BufferedReader br_reader = new BufferedReader(new FileReader("sample.txt"));
String strin = br_reader.readLine();
System.out.println("Line ::"+strin);
}catch(IOException objIOException)
{}
}
}
Thanks
Sravam
[ August 07, 2003: Message edited by: sravan reddy ]
ex:
dmk.del.423543.dffd555.23434
dmk.del.423543.dffd555.23435
dmk.del.423543.dffd555.23436
dmk.del.423543.dffd555.23437
sample.txt
i have to read the content of the sample txt file by line by line...
Please let me know what modifications i have to do in the following code..
class SampelRead
{
public static void main(String[] args)
{
try{
BufferedReader br_reader = new BufferedReader(new FileReader("sample.txt"));
String strin = br_reader.readLine();
System.out.println("Line ::"+strin);
}catch(IOException objIOException)
{}
}
}
Thanks
Sravam
[ August 07, 2003: Message edited by: sravan reddy ]