如何读取跳过读取具有字符“01”的行的行?和“25”
示例:
FSA claim 'TO' date of service is 20111201 and the selection date is 20110627
FSA claim 'TO' date of service is 20110702 and the selection date is 20110627
FSA claim 'TO' date of service is 20110725 and the selection date is 20110627
我的代码是:
else if (line.ToUpper().Contains(" FSA CLAIM 'TO' DATE"))
{
if (!(line.Substring(34, 2).Trim() != "01" & (!(line.Substring(34, 2).Trim() != "25"))))
{
//MyClaimNumber = MyHoldline.Substring(25, 12);
outputFSAClaimtodate.WriteLine(MyHoldline);
outputFSAClaimtodate.WriteLine(line);
它仍然读取包含它们的行。
我的目标应该是这样的:
FSA claim 'TO' date of service is 20110702 and the selection date is 20110627
请帮忙!!!
Example:
FSA claim 'TO' date of service is 20111201 and the selection date is 20110627
FSA claim 'TO' date of service is 20110702 and the selection date is 20110627
FSA claim 'TO' date of service is 20110725 and the selection date is 20110627
my code is:
else if (line.ToUpper().Contains(" FSA CLAIM 'TO' DATE"))
{
if (!(line.Substring(34, 2).Trim() != "01" & (!(line.Substring(34, 2).Trim() != "25"))))
{
//MyClaimNumber = MyHoldline.Substring(25, 12);
outputFSAClaimtodate.WriteLine(MyHoldline);
outputFSAClaimtodate.WriteLine(line);
it still read those line containing them.
My target out should be like this:
FSA claim 'TO' date of service is 20110702 and the selection date is 20110627
Please help!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这种情况:
令人困惑。例如,它有:
或“不(不等于)”,这与“等于”相同:
如果你的意思是“既不是X也不是Y”,那就是“(不是X)和(不是Y)”:
This condition:
is confusing. It has, for example:
or "not (not equals)", which is the same as "equals":
If you mean "neither X nor Y", that's "(not X) and (not Y)":