Java Question Reading files from java lib

Discussion in 'Libraries developers questions' started by kepler, Mar 21, 2015.

  1. kepler

    kepler Active Member Licensed User

    Good evening,

    I have made a successful lib in Java that actually works in B4A... ;)

    But in that java lib, I have a method that must read some files (they are too heavy to be included in the lib, I think).
    My question is: where do I put these files (is it in my Files folder of my Project Folder?), and what file path do I use to read them (is it Files/filename.txt ?) ?

    Kind regards,

  2. Erel

    Erel Administrator Staff Member Licensed User

    The simplest way is to open the file from B4A and pass the inputstream to your library. This allows developers to put the files wherever they like.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice