本文介绍了txtfile显示vcard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我提出的所有问题中,我不明白答案.
因为我来自荷兰,我的英语不太好,我不理解MSDN等网站的示例.所以我现在的问题是:

我有一个文本文件:*.vcf,我想逐行读取此文件.
然后我想拆分:",因为在:"之后是我需要显示的信息.

该文件的示例为:

hey

of all the questions i have asked i don''t understand the answers.
Because i''m from holland, my english is not very good en I don''t understand examples from websites like MSDN etc.. so my question now is:

I have a textfile: *.vcf and i want to read this file Line by Line.
Then i want to split ":" because after the ":"..is the info i need to show.

example of the file is:

BEGIN:VCard
VERSION:2.1
N:'T GROENE HART
FN:
TEL;WORK;VOICE:0505420369
TEL;WORK;VOICE:0505420369
TEL;HOME;VOICE:06-12345678
TEL;CELL;VOICE:06-12345678
TEL;VOICE:0512 342040
TEL;WORK;FAX:0512 342040
TEL;FAX:0512 342040
ADR;WORK;PREF:;;Straat 34;HoutJE;;8765 AF
ENCODING=QUOTED-PRINTABLE:Straat 34
URL;HOME:www.biss.nu
URL;WORK:www.biss.nu
EMAIL;PREF;INTERNET:Jan@home.nl
END:VCARD



我不需要BEGIN:VCARD,VERSION和END:VCARD..so,因此,如果它以VCARD开头,那么我想阅读下一行,直到N :,然后从该行将txt文件转换为frmVCard.txtVCard文本".

谁能给我一个代码示例..请没有网站..

感谢



I don''t need the BEGIN:VCARD, VERSION and the END:VCARD..so if it startswith VCARD then I want to read nextline tille N: and from this line convert the txt file to frmVCard.txtVCard "Text"..

can anyone give me an code example.. please no website..

thanks

推荐答案


FileOpen(1, FileName, Input)
Do Until EOF(1)
  Data = LineInput(1)
Loop
FileClose(1)


这篇关于txtfile显示vcard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 14:07