GithubHelp home page GithubHelp logo

Comments (4)

jMarcS avatar jMarcS commented on July 3, 2024
  1. I tried "text.open r,f,"fred.txt" - trying to read a non-existent file. It should have set f to -1 and continue. Instead it died with a runtime error: "Error: android.content.res.Resources$NotFoundException: Resource ID #0x0". That really doesn't seem right.

  2. Again, by experiment:

  • opening a file for append that does not exist creates an empty file.
  • opening a file for write that already exists deletes the contents of the file; that is, it replaces the existing file with a new, empty one.

from de-re-basic.

mrleavitt avatar mrleavitt commented on July 3, 2024

I added words in #2, as indicated.

But it seems like #1 is still an open issue, if it doesn't work as the manual says it should.

from de-re-basic.

jMarcS avatar jMarcS commented on July 3, 2024

Right. I thought I just go in and fix it so the code does what the manual says, but it turns out there are other similar cases. I've open a code bug issue for it (Basic #49). Until that's closed, I think we should just leave this one open.

from de-re-basic.

jMarcS avatar jMarcS commented on July 3, 2024

I'm committing changes to close Basic #49. Both TEXT.OPEN and BYTE.OPEN now return -1 if the file does not exist. The manual is correct.

from de-re-basic.

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.