B4A Question Skip emtpy line by reading in a file to a listview - JohnC (first post)    Sep 19, 2024   (1 reaction) I ran the new issue through the new ChatGPT o1 (preview version) and this is what it said... The issue arises because reading line by line from a file located in File.DirAssets using TextReader does not work as expected in B4A. The assets folder is read-only and has limitations when accessed direct B4A Question how to replace text in a text file? - DonManfred (first post)    Jul 06, 2016   (1 reaction) Files in assets folder (files folder) are readonly. Read the file into a variable Replace the string write the content to disc using another destinationpath than assets Read the beginnersguide and usersguide to get inspiration. Use the forumsearch! All this is discussed few times. I´m sure you´ll B4A Question Reading / Writing text files and where is the Files Tab? - Erel (first post)    May 31, 2016 This is the files tab.
It is also called the assets folder because it is accessed with File.DirAssets.
It is readonly.
Log(File.ReadString(File.DirAssets, "yourfile.txt")) B4A Question Accessing a Notepad text file - walt61 (first post)    Nov 17, 2022 File.DirInternal -> File.DirAssets (the Files folder is the assets directory; note that it is read-only) B4A Question File.exists is very slow in release mode and ok in debug mode - Erel (first post)    Dec 16, 2015   (3 reactions) In debug mode the asset files are not packed inside the APK so it is faster to access them. You know which files exist in File.DirAssets. You can create a text file with all the files, read it with File.ReadList and then check whether the file exist based on this list. Bug? Strange behavior of Assets (not updating / refreshing) - Cadenzo    Jul 30, 2020 It is a project with B4XPages. (if it is important)
I know that it is a mistake to use things like file.exists with assets. But in this case I just want to read a text file.
I changed the text in the asset (same filename, new text), but when reading it shows the old text.
I deleted the asset and ad B4J Tutorial jFreeTTS Text2Speech Library - Mashiane (first post)    Jan 28, 2018 I think in the assets folder there is an alice.txt file, its reading from there. I'm not sure I managed to make it pause / stop. When I explored this I wanted a lib for "text-to-speech" and I'm really not sure if it can do "speech-to-text". Perhaps exploring the FreeTTS website will provide some gre B4A Question open file pdf in folder DirAssets - DonManfred (first post)    Jul 02, 2015 That´s the point. YOU (your app) can read the files from your assets. No matter what type of files. But with the intent you start ANOTHER app which should show the file. This app do need access to your Assets or Internal files to read the file but it hasnt this permission. So; if you relay on an ex B4J Question Compare a text file hosted online with a text file inside the assets folder. - Dominik H    Feb 09, 2016 Just as the title says, how would I go about doing this? It would work similar to an update checker.
The main struggle here is that I don't know how I would go about downloading that file to a temporary location so that it can be read and converted into a number and then compared.
Any help is appr B4A Question Change a word in the text - Mahares (first post)    Feb 13, 2021   (1 reaction) Something like this: Sub Class_Globals Private Root As B4XView Private xui As XUI Private s As String End Sub Private Sub B4XPage_Created (Root1 As B4XView) Root = Root1 Root.LoadLayout("MainPage") 'has button1 s= File.ReadString(File.DirAssets, "darkwolf.txt") 'suppose you Page: 1   2   3   4   5   6   7   Powered by ColBERT |