• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read text file through oracle procedure

 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to create procedure for read the text file.
How can i do this.

I created in java coding like this
i have to create oracle procedure.
Please...

[javadoc]String fileName="c://Test/Search.txt";
BufferedReader in = null;
String Num="";

try{
in = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));
String readIn = in.readLine();
while(readIn!=null){
Num = readIn.substring(5,10);
if(s.search(Num))
System.out.println("True No:"+readIn);

readIn = in.readLine();
}[/javadoc]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This FAQ may help you reading/writing files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic