A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Getting MEAN with Mongo, Express, Angular, and Node
this week in the
Read and search for text in a file
Joined: Dec 19, 2010
Mar 18, 2011 15:22:45
I have a file like this
ABCD 123 blah blah
xyz = varb;
What I need to do:
search in the file for xyz and find varb and then find
and extract what it is a string.
so the definition of varb is before it is used, so I need to find if it is used and then find what it is defined as.
How do I do this? The file will be Unix formatted but stored locally on a DOS machine.
Joined: Oct 13, 2005
Mar 19, 2011 14:03:26
Do you know how to find a String inside a String?
It is sorta covered in the
JavaRanch Style Guide
subject: Read and search for text in a file
Help with Java
backslash n is being escaped against my will
Adding html tags to script
getRequestDispatcher(), relative path problem...
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015