Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
how to read specific content frm some specific files inside a directory
maverick83
hi guys,
i want to read only some specifc content from some files inside a directory ,i am able to prinout the file names i want to access for printing purposes but i am not able to unstd the remaining portion as in how to access only the specific tag content from the specific file to print it out,pls reply if u no anything related to this thing,thanks in advance
regards,
mav
Find more posts tagged with
Comments
Rit
Hi Maverick,
After you got ur specific file, open a file handle to read the contents of the file line by line. In case, if the line matches the specific tag content, put that line into some array. I have added the above concept in your code and attached it alongwith.
maverick83
hi rit,
thanks to u ,it is working now
regards,
rahul