File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Read text file through oracle procedure" Watch "Read text file through oracle procedure" New topic

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.

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

in = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));
String readIn = in.readLine();
Num = readIn.substring(5,10);
System.out.println("True No:"+readIn);

readIn = in.readLine();
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

This FAQ may help you reading/writing files.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Read text file through oracle procedure
Similar Threads
getting text to appear in the JOptionPane function
Regex help
How to append text to the end of a text file?
Need help...
Java: Convert a binary file to "text" and back again.