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;
                    }
                    
                }
            }

  • 相关阅读:
    CF238B Boring Partition
    CF1424G Years
    CF995D Game
    CF468C Hack it!
    CF1417A Copy-paste
    CF1417B Two Arrays
    CF849B Tell Your World
    [洛谷P3389][模板]高斯消元法
    CF1225D
    P6687
  • 原文地址:https://www.cnblogs.com/bingxing/p/8598774.html
Copyright © 2011-2022 走看看