Andres, I believe what Ed wrote is exactly what you are requesting.
Opalinski
opalpa@gmail.com
http://www.geocities.com/opalpaweb/
> Thats sort of what i want Except say i have a text file that has the
> following lines in it:
[quoted text clipped - 5 lines]
>
> i want these to be separte queries.
If I understand you right, then the code snippet posted should have
been what you asked for; particularly, be aware that the BufferedReader
read's in text line-by-line (rather than character-by-character or the
entire file at one go); so on first iteration, the read line will be,
"dog," then on the next, it will be, "cat," etc.
.ed (listening to the absolutely gorgeous sound-track, "The Village;"
that man can play a violin ...)
--
www.EdmundKirwan.com - Home of The Fractal Class Composition