Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Read character by character from a file

807588Jan 23 2009 — edited Jan 24 2009
Dear Experts

I want to read a file character by character. I would appreciate if anyone will let me know if there is a function like fgetc (of C programming language) or cin.get (like c++)

I would also be interested in reading a file word by word like the cin.get(temp,' ') // delimited by space

I would appreciate your help in this matter

Thanks
Manish
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 21 2009
Added on Jan 23 2009
7 comments
532 views