Click here to Skip to main content
16,019,273 members
Please Sign up or sign in to vote.
1.40/5 (2 votes)
See more:
Hi all, i have been googling around but i could not find an answer, what i am trying to achieve is , i have some content in text file say details.txt with titles like below
NAME
abc
cde
efg

AGE
1
2
3

SUBJECT
qwe
asd
zxc

if i put this in asset folder, how can i read it on the the basis of titles and show them in separate views.Any help in form of useful link or some explanation is highly appreciated.Please let me know if i am not clear enough on my question.
Posted
Comments
Sergey Alexandrovich Kryukov 10-Jun-14 18:24pm    
Did you consider, instead of "googling" (for what?!) actually write some appropriate code? If not, let me remind you that this is a site for software developers, not solution seekers.
You just need to read a single line from the file. But actually the whole idea is bad. How about having, say, a file of file names, classifying them by those topics/titles?
—SA
azhar eqbal 11-Jun-14 3:36am    
@Sergey Alexandrovich Kryukov, thanks for you valuable time and regarding you comment about being a software developer all i have to say that a softwre developer is a solution seeker to the problems he faces, softawre development is all about problems and its solution.Don't tell me that you never faced a problem, and finally you could have written about solution rather than describing me about this place...thanks anyways!
Sergey Alexandrovich Kryukov 11-Jun-14 11:17am    
This is not an excuse for not solving problems by yourself. I would gladly help you if I knew your problem. For now, I just see not a very good design idea and no effort to solve it. It does not look like a problem, it looks like a work to do. And if you needed help with design of the code, you would need to explain the ultimate purpose: why doing such a weird manipulation with files? Maybe you need something else?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900