/*
텍스트파일을 모두 대문자로 바꾸어서 문자열을 찾을때에,ㅡㅡㅡㅡㅡㅡ
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
using System.ComponentModel;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Timers;
using System.Diagnostics;
using System.Xml.XPath;
using System.Reflection;
using System.Collections;
using System.Xml;
using System.IO;
using System.Net;
class Program
{
public static void Main()
{
MMMMMMMM nm = new MMMMMMMM();
nm.running();
}
}
class MMMMMMMM
{
void ____read_txt(string filename)
{
int kk, ii;
string mmmText = "";
string mmmsubText = "";
string ____findStr = "SERVERINFO.XML";
mmmText = Syste m.IO.File.ReadAllText(filename);
mmmText = mmmText.ToUpper();
Console.WriteLine(mmmText);
}
public void running()
{
int kk;
string folderName = Syste m.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);
string[] files = Directory.GetFiles(folderName, "*", SearchOption.AllDirectories);
for(kk=0; kk<files.Length; kk++)
{
Console.WriteLine(files[kk]);
if(files[kk].IndexOf(".cpp") >=0)
{
____read_txt(files[kk]);
}
}
}
}
'c# 언어 > 초급과정' 카테고리의 다른 글
람다식 문법 : (입력 파라미터) => { 실행문장 블럭 }; (0) | 2023.06.12 |
---|---|
public int CompareTo (Version? value); (0) | 2023.06.09 |
변수접근방법,private,public (0) | 2023.05.30 |
Remove item from Dropdownitems in a context menustrip(?) (0) | 2023.05.19 |
FILE. 1 Line.Read & 1 Line Append Write,,,,,, (0) | 2023.05.17 |