Kotlin의 리소스에서 텍스트 파일을 읽는 방법은 무엇입니까? Kotlin에서 Spek 테스트를 작성하고 싶습니다. 테스트는 src/test/resources폴더 에서 HTML 파일을 읽어야 합니다. 어떻게하나요? class MySpec : Spek({ describe("blah blah") { given("blah blah") { var fileContent : String = "" beforeEachTest { // How to read the file file.html in src/test/resources/html fileContent = ... } it("should blah blah") { ... } } } }) val fileContent = MySpec::class.java.getReso..