Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
84 views
in Technique[技术] by (71.8m points)

java - Issue with reading .txt file

I am trying to read a .txt file that has rows as

110   43506   201023344 2636
200   65656   201366666 5555
300   66366   201909886 3222
110   36566   209998888 3333
200   76677   328788878 7777
300   77377   773777377 0000

so I have written a if loop to get the value from row 1, 2 , 3 if substring='110', '200', '300' in three different if loops once I read the values from .txt file , I get the values from DB & then compare whether values from file & DB match, The ISSUE I have is the output is being printed thrice .I only wanted it to print once , is there better way to read file ?? this is automation of .txt file in selenium using java

question from:https://stackoverflow.com/questions/65946600/issue-with-reading-txt-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...