입력과 출력(Input and Output)

입력과 출력(Input and Output)

입력과 출력은 포트(port)라는 개념을 중심으로 다뤄집니다. 포트는 바이트나 문자열이 흘러다니는 통로라고 생각하면 돼요.

출처: Racket Reference

본문

입력과 출력(Input and Output)에 대한 소개는 The Racket Guide의 Ports and I/O에서 다룹니다.

이 장은 다음 하위 절로 구성되어 있습니다.

  • 13.1 포트(Ports)
    • 13.1.1 인코딩과 로케일(Encodings and Locales)
    • 13.1.2 포트 관리(Managing Ports)
    • 13.1.3 포트 버퍼와 위치(Port Buffers and Positions)
    • 13.1.4 위치·줄·열 세기(Counting Positions, Lines, and Columns)
    • 13.1.5 파일 포트(File Ports)
    • 13.1.6 문자열 포트(String Ports)
    • 13.1.7 파이프(Pipes)
    • 13.1.8 구조체로서의 포트(Structures as Ports)
    • 13.1.9 사용자 정의 포트(Custom Ports)
    • 13.1.10 추가 포트 생성자·프로시저·이벤트(More Port Constructors, Procedures, and Events)
      • 13.1.10.1 포트 문자열·리스트 변환(Port String and List Conversions)
      • 13.1.10.2 포트 생성(Creating Ports)
      • 13.1.10.3 포트 이벤트(Port Events)
      • 13.1.10.4 스트림 복사(Copying Streams)
    • 13.2 바이트·문자열 입력(Byte and String Input)
    • 13.3 바이트·문자열 출력(Byte and String Output)
    • 13.4 읽기(Reading)
    • 13.5 쓰기(Writing)
    • 13.6 보기 좋게 출력하기(Pretty Printing)
      • 13.6.1 기본 Pretty-Print 옵션
      • 13.6.2 심볼별 특수 출력
      • 13.6.3 줄 출력 훅(Line-Output Hook)
      • 13.6.4 값 출력 훅(Value Output Hook)
      • 13.6.5 추가 사용자 정의 출력 지원
    • 13.7 리더 확장(Reader Extension)
      • 13.7.1 Readtable
      • 13.7.2 리더 확장 프로시저
      • 13.7.3 특수 주석(Special Comments)
    • 13.8 프린터 확장(Printer Extension)
    • 13.9 직렬화(Serialization)
      • 13.9.1 직렬화 구조체
    • 13.10 빠른 로드 직렬화(Fast-Load Serialization)
    • 13.11 암호화 해싱(Cryptographic Hashing)

더 알아보기