删除特定位置的文本文件中的零

删除特定位置的文本文件中的零

本文介绍了删除特定位置的文本文件中的零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我试图让VBScript读入txt文件并删除该文件中的前导零。任何想法?


 


所以在"TASO"中行,值必须是  597782365而不是  0597782365和  577989008
而不是 
0577989008。


 


"HEADR","TASO","FEL","KOP","KIP", "ELL",20090401,"182708","PS001234","PRDCT",2,2



122345"


"TASO",98,"","","CARLTON HEMM",""","LAMP","OP100","9APPL", 0577989008," G4A08233889901",5," CM"," M",1.000,"       44574",20090102,20110419,"      
16597"


 


赞赏的任何输入。


解决方案

Hi guys,

Im trying to make a VBScript to read into a txt file and strip out the leading zeros in that file. Any ideas?

So in the "TASO" lines, the values need to be 597782365 instead of 0597782365 and 577989008 instead of 0577989008.

"HEADR","TASO","FEL","KOP","KIP","ELL",20090401,"182708","PS001234","PRDCT",2,2

"TASO",59,"","","CHESTWAY","DESK","UK","UK59","0OJ",0597782365,"L1059957461M",5,"AT","M",1.000,"       00293",20101243,20325556,"       122345"

"TASO",98,"","","CARLTON HEMM","","LAMP","OP100","9APPL",0577989008,"G4A08233889901",5,"CM","M",1.000,"       44574",20090102,20110419,"       16597"

Any inputs in appreciated .

解决方案


这篇关于删除特定位置的文本文件中的零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 10:15