By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,034 Members | 820 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,034 IT Pros & Developers. It's quick & easy.

Text file reading

P: 16
Hello,
I was wondering how to get a particular line from a text file. I wanted to output specific lines from a textfile to the console. but the ways i tried is giving me the whole text file. Any help would be great!!
Thanks in advance
Jan 20 '07 #1
Share this Question
Share on Google+
4 Replies


P: 16
I figured it out.
Jan 20 '07 #2

10K+
P: 13,264
I figured it out.
Good for you
Jan 20 '07 #3

P: 2
to get the output from a particular file you can use the command of
outputstream.getText().getBytes()
Jan 22 '07 #4

10K+
P: 13,264
to get the output from a particular file you can use the command of
outputstream.getText().getBytes()
Which outputstream are you talking about? This will not work.
Jan 22 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.