开发者

How to move cursor to new_line while reading through UTL file?

My requirement is to read a file and fetch some data from each line. for eg:suppose my file conatain this data:

a b c d
e f g h 

I want to read a b c, after reading a b c ,i want to directly move to second line to read e. Is there is any function to get cursor to starting of next line from current line(imagine cursor position is at middle of the current line and i need to jump directly to initial of next line "to e here").

Ple开发者_高级运维ase let me know!!


UTL_FILE.GET_LINE reads data from the file one line at a time. So the first time called it would read the line 'a b c d', the second time 'e f g h'. I don't know what you mean by saying your "cursor position is at the middle of the current line". Can you post your code so far?


after reading a line with get_line, use instr and substr to get only a b c and then go to next line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜