File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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?
I agree. Here's the link:
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