计数记录在文本文件中以$分隔 [英] Count Records separated by $ in a Text file
本文介绍了计数记录在文本文件中以$分隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
有人可以帮忙吗?我有一个程序,它读取文本文件并复制由$符号分隔的内容,并将详细信息写入另一个新的文本文件,不包括$ Sign。我需要帮助的是进行计数,并用$符号分隔总记录。例如。 ajasasaj $测试%878788 %% $ lkshhajsjah
以上总数将为3.我想要的是3值。那怎么能得到那个3?请尽快提供帮助。
解决方案
签名并将详细信息写入另一个新文本文件,不包括
Sign。我需要帮助的是进行计数并通过
符号分隔总记录。例如。 ajasasaj
Hello,
Could someone please assist here? I have a program that reads a text file and copys the contents separated by a $ sign and writes the details to another new text file excluding the $ Sign. What I need assistance is to do a count and get the total records separate by the $ sign. Eg. ajasasaj$testing%878788%%$lkshhajsjah
for the above the total count would be 3. What I want is the 3 value. so how could I get that 3? Please assist at your earliest.
解决方案
sign and writes the details to another new text file excluding the
Sign. What I need assistance is to do a count and get the total records separate by the
sign. Eg. ajasasaj
这篇关于计数记录在文本文件中以$分隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文