- "Safe" access of files. It does not matter if file exists or not, it will not throw any exceptions. Let's say you try to read a file which does not exist - it will return an empty string.
- Async
- Copy paste FileEditor.kt and AsyncEditor.kt to your project
- If its Kotlin project use:
FileEditor.<method>If its Java project use:FileEditor.INSTANCE.<method>OR create constantconst FileEditor fileEditor = FileEditor.INSTANCE;and then use it by acessing variable:fileEditor.<method>
Because these files are meant to be modified as project grows and needs increase.