Giter Site home page Giter Site logo

Comments (8)

doyaaaaaken avatar doyaaaaaken commented on July 19, 2024

Thank you.
Could you give me information about the bug?
For example,

  • kotlin-csv version
  • environment information (OS, jdk version, etc)
  • describe the bug A clear and concise description of what the bug is.
  • To Reproduce Steps to reproduce the behavior: (attach sample code)
  • Screenshots If applicable, add screenshots to help explain your problem.

from kotlin-csv.

aitizazsyed02 avatar aitizazsyed02 commented on July 19, 2024
  • kotlin-csv version 0.9.0.
  • java version 14
  • I tried the exact same code provided in the README file as an example.
  • Example used
    val row1 = listOf("a", "b", "c")
    val row2 = listOf("d", "e", "f")
    csvWriter().open("test.csv") {
    writeRow(row1)
    writeRow(row2)
    writeRows(listOf(row1, row2))
    }

from kotlin-csv.

doyaaaaaken avatar doyaaaaaken commented on July 19, 2024

I cannot reproduce the bug... Maybe, this link helps you.[https://stackoverflow.com/questions/27103877/java-io-filenotfoundexception-open-failed-erofs-read-only-file-system](java.io.FileNotFoundException: open failed: EROFS (Read-only file system)).
This article says it makes failure to save file in the root system partition which is always read-only.

from kotlin-csv.

aitizazsyed02 avatar aitizazsyed02 commented on July 19, 2024

What's the location of a file where it will be saved using writeRows and writeAll?
how can we define our custom path?

from kotlin-csv.

doyaaaaaken avatar doyaaaaaken commented on July 19, 2024

As you see this line, the passed file name is simply converted to java.io.File.

Or, you can pass java.io.File directly instead of file name (String).

csvWriter().open(File("test.csv")) {
//...
}

from kotlin-csv.

aitizazsyed02 avatar aitizazsyed02 commented on July 19, 2024

I have storage permission granted. but still this problem occurs. I have noticed it happen in android 10

from kotlin-csv.

aitizazsyed02 avatar aitizazsyed02 commented on July 19, 2024

/storage/emulated/0/Documents/test.csv: open failed: ENOENT (No such file or directory)

from kotlin-csv.

doyaaaaaken avatar doyaaaaaken commented on July 19, 2024

Sorry, I cannot do anything about java.io.File specific problem.

from kotlin-csv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.