Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Parsing Text in File

  Asked By: Juana    Date: Sep 05    Category: Java    Views: 816
  

Actually I want to read content of file excluding header and enders(these will
be supplied by user.)
like
XXXXXXXXX //start tag

//any string or binary data

YYYYYYY//end tag

and write content into another file without heders and enders.

if u all got any idea please help with ur ideas and (code examples)
thanks

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Hubert Taylor     Answered On: Sep 05

If XXXXXXX and YYYYYYY are of pre customized fixed lenth tag.. u can use
the file  reader class methods to jump these.

 
Answer #2    Answered By: Lurlene Fischer     Answered On: Sep 05

Is this is the only requirement ?
Is it suffice your future ?

 
Answer #3    Answered By: Helene Stewart     Answered On: Sep 05

please tell me more specifically because i don't find any useful mehod in
FileReader class for my situation.

 
Answer #4    Answered By: Feodora Bonkob     Answered On: Sep 05


Do a search on jflex and check out their website. This is a simple
parser that should work for your problem.

 
Didn't find what you were looking for? Find more on Parsing Text in File Or get search suggestion and latest updates.




Tagged: