zoukankan      html  css  js  c++  java
  • C#函数库

    //读取文本文件并返回内容不同的那一行
            public static String different(String sOldFile, String sNewFile)
            {
                StreamReader srOld = new StreamReader(sOldFile);
                StreamReader srNew = new StreamReader(sNewFile);
                String sOldLine;
                String sNewLine;
                while(true)
                {
                    sOldLine = srOld.ReadLine();
                    sNewLine = srNew.ReadLine();
                    if( (sOldLine==null) || (sNewLine==null))
                    {
                        return null;
                    }
                    if( sOldLine == sNewLine)
                    {
                        continue;
                        
                    }
                    else
                    {
                        return sNewLine;
                    }
                    
                }
            }

  • 相关阅读:
    Map集合
    Collections 工具类
    LinkedList 集合
    List集合
    Iterator迭代器
    Collection集合
    时间日期类
    一看就懂!速写docker 容器数据库备份脚本
    Nginx 配置之HTTPS和WSS那些你不知道的事!
    https 证书认证/颁发/秒级认证无烦恼
  • 原文地址:https://www.cnblogs.com/bingxing/p/8598774.html
Copyright © 2011-2022 走看看