如何根据标题从资产文件夹中读取文本文件中的文本。 [英] How to read text from text file from asset folder on the basis of title.

查看:80
本文介绍了如何根据标题从资产文件夹中读取文本文件中的文本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我一直在谷歌搜索但我找不到答案,我想要实现的是,我在文本文件中有一些内容说details.txt与下面的标题

姓名

abc

cde

efg



年龄

1

2

3



SUBJECT

qwe

asd

zxc



如果我把它放在资产文件夹中,我怎么能在它的基础上阅读它标题,并在不同的视图中显示它们。有用的链接或一些解释形式的任何帮助非常感谢。如果我对我的问题不够清楚,请告诉我。

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.

推荐答案

这篇关于如何根据标题从资产文件夹中读取文本文件中的文本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆