기억하라

2026년 1월 16일 15:53분

package com.jesusbornd.exodus;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;

public class Exodus_13_Chapter_Lv1 {

    public static void main(String[] args) throws Exception {
        String memory = String.join("\n",
                "구별 / Consecration",
                "기억 / Remembrance",
                "인도 / Guidance"
        );

        Path path = Path.of("exodus_13_memory.txt");

        Files.writeString(
                path,
                memory + "\n",
                StandardOpenOption.CREATE,
                StandardOpenOption.TRUNCATE_EXISTING
        );

        String loaded = Files.readString(path);

        System.out.println(loaded);
    }
}

from pathlib import Path

memory = "\n".join([
    "구별 / Consecration",
    "기억 / Remembrance",
    "인도 / Guidance",
])

path = Path("exodus_13_memory.txt")
path.write_text(memory + "\n", encoding="utf-8")

loaded = path.read_text(encoding="utf-8")
print(loaded)

Comments

Avatar
 2026년 1월 16일 15:55분

txt로 저장했다가 다시 읽어오는 게, 말씀을 마음판에 새겼다가 다시 꺼내 보는 행위처럼 보여서 느낌 좋았습니다.



Search

← 목록으로