1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-24 15:34:09 +02:00
IntelliJ-IdeaVim/annotation-processors/src/main/kotlin/com/intellij/vim/FileWriter.kt

19 lines
422 B
Kotlin

/*
* Copyright 2003-2023 The IdeaVim authors
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE.txt file or at
* https://opensource.org/licenses/MIT.
*/
package com.intellij.vim
import java.io.File
import java.nio.file.Path
class FileWriter {
fun writeFile(filePath: Path, content: String) {
val file = File(filePath.toUri())
file.writeText(content)
}
}