{"id":63042,"library":"better-files-2-13","title":"Better Files for Scala 2.13","description":"A simple, safe, and intuitive Scala library for file and I/O operations, designed as a replacement for java.io.File.","status":"active","version":"3.9.2","language":"java","source_language":null,"source_url":"https://github.com/pathikrit/better-files","tags":["scala","file-io","filesystem","utility"],"install":[{"cmd":"<dependency>\n  <groupId>com.github.pathikrit</groupId>\n  <artifactId>better-files_2.13</artifactId>\n  <version>3.9.2</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.github.pathikrit:better-files_2.13:3.9.2'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"File","correct":"better.files.File"}],"quickstart":{"code":"import better.files._\n\nval file = File(\"/tmp/example.txt\")\nfile.overwrite(\"Hello, World!\")\nprintln(file.contentAsString) // prints: Hello, World!","lang":"scala","description":"Write and read a file using the better-files API."},"warnings":[{"fix":"Use the correct artifact for your Scala version: better-files_2.12, better-files_2.13, or better-files_3.","message":"better-files 3.x uses Scala 2.13; not compatible with Scala 2.12 or 3.x without cross-version artifacts.","severity":"breaking","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'2.13':5 'better':1 'design':18 'file':2,14,26 'file-io':25 'filesystem':28 'i/o':16 'intuit':10 'io':27 'java.io.file':23 'librari':12 'oper':17 'replac':21 'safe':8 'scala':4,11,24 'simpl':7 'util':29","created_at":"2026-06-17T16:39:07.778128+00:00","updated_at":"2026-06-17T16:39:07.778128+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/pathikrit/better-files","github":"https://github.com/pathikrit/better-files","docs":"https://appdoc.app/artifact/com.github.pathikrit/better-files_2.13/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}