Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Oracle/OAS and the fly likes Read text file through oracle procedure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Read text file through oracle procedure" Watch "Read text file through oracle procedure" New topic
Author

Read text file through oracle procedure

Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Posts: 68
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

This FAQ may help you reading/writing files.


[My Blog]
All roads lead to JavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Read text file through oracle procedure
 
Similar Threads
Java: Convert a binary file to "text" and back again.
How to append text to the end of a text file?
getting text to appear in the JOptionPane function
Need help...
Regex help