Using substr/instr on a tab delimited txt file

Hi I am trying to figure out how to load data into variables using PLSQL.  I have been using substr to load the data into each variable.  For example,

vStockNum                 := substr(vBuffer,1,instr(vBuffer,vTab,1,1));

vBuffer is a line from what the UTL_FILE variable is reading in.  The problem I am having is the part named vTab.  How do you search for a tab.  If it was a comma, it would be ',' but since we are dealing with a tab rather than a punctuation mark its more challenging.  I've tried doing the manual way of '     ', but that doesn't work either.  Any ideas on what I could try?
YEforceAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DrSQLCommented:
YEforce,
   Yes, use the chr function.  A tab is a chr(1).  But don't you want to strip off the tab?  That would be:

vStockNum                := substr(vBuffer,1,instr(vBuffer,chr(10),1,1) - 1);


Good luck!
DrSQL

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.