입출력 처리

·Kotlin
1. 네트워크 통신 (Networking) HTTP 요청: Kotlin에서는 Java의 HttpURLConnection 또는 OkHttp, Retrofit과 같은 서드파티 라이브러리를 사용하여 HTTP 요청을 수행할 수 있습니다. 예 (HttpURLConnection 사용): val url = URL("http://example.com") val connection = url.openConnection() as HttpURLConnection try { val data = connection.inputStream.bufferedReader().readText() // 데이터 처리 } finally { connection.disconnect() } 2. 파일 입출력 (File I/O) 파일 읽기 및 쓰기:..
wsstar
'입출력 처리' 태그의 글 목록