본문 바로가기

DevHyun

검색하기
DevHyun
프로필사진 D3V3L0P3R

  • 분류 전체보기 (60)
    • C# (7)
    • Delphi (15)
    • Web (23)
      • Django&Python Blog Projecct (15)
      • Django&Python 개발환경 셋팅 (8)
    • Tip (2)
    • App (0)
      • WebView (0)
    • Algorithm (4)
      • baekjoon online judge (4)
    • SQL (9)
      • HACKERRANK (7)
      • Query (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • declare
  • 백준
  • Push
  • Visual Studio
  • blog
  • PyCharm
  • rank
  • COMMIT
  • delphi 10.3
  • github
  • Django
  • python3
  • get_object_or_404
  • anaconda3
  • HTML
  • GIT
  • hackerrank
  • TMS
  • 중복제거
  • python 3.7
  • queryset
  • dbadvgrid
  • advColumnGrid
  • 델파이
  • Delphi
  • templates
  • pythonanywhere
  • c#
  • MSSQL
  • pyhcarm
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록assignfile (1)

DevHyun

txt 파일을 이용하여 log 찍기

예를들어 C:\TEMP 폴더가 있으면 C:\TEMP 폴더에 log.txt 파일을 생성하여 '로그 로그 로그'를 작성하기 만약 i/o Error가 난다면 입력할수있는 글자수가 초과되었을 수도 있음! procedure TForm1.Button1Click(Sender: TObejct); var dir : string; // 경로 txt : TextFile; // 텍스트파일 begin //if Not DirectoryExists('경로') then if Not DirectoryExists('C:\TEMP') then begin //CreateDir('경로'); CreateDir('C:\TEMP'); end; //dir := '텍스트 파일 명을 포함한 경로'; dir := 'C:\TEMP\log.txt'; // ..

Delphi 2020. 10. 29. 10:32
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바