B4A Question Read text file from Assets - Erel (first post)    Feb 4, 2013 Please use tags (without spaces) when posting code.
Note that this line is not needed:
File.OpenInput(File.DirAssets,"phoneno.txt")
You haven't written which line raises the error. However the assets folder is a read-only folder. You cannot write to a file there.... B4A Question Read and Replace Extended Ascii characters from a text file in DirAssets? - Erel (first post)    Aug 25, 2014 Use TextReader.ReadList instead of ReadAll.... B4A Question How to read JSON files from a remote server?THANKS! - aeric (first post)    Aug 30, 2024   (1 reaction)
prefdialog.LoadFromJson(File.ReadString(File.DirAssets, "Example.json"))
This code read json from local (asset files folder) for creating B4XPreferencesDialog.... B4A Tutorial [B4X] TextEditor - Save and load external files - Erel    Sep 10, 2023   (38 reactions) -list-of-other-related-methods.129897/#content Allow other apps to view text files using this app...-with-activityviewcontroller.73159/#content This also allows saving the text with the Files app. Allow other apps to view text files using this app: https://www.b4x.com/android/forum/threads/open-external...This is a B4i and B4A example, which demonstrates various external files related tasks. 116714.... B4A Load external files, including online files, using ContentChooser. Save to an external target... Tool [B4X] Forms Builder - Designer for B4XPreferencesDialog - Erel    Sep 22, 2019   (37 reactions)   tags: Forms Builder, B4XPreferences, Designer, preferance form builder https://www.b4x.com/basic4android/images/SS-2019-04-09_12.32.08.png FormsBuilder is a desktop tool that helps with building templates for B4XPreferencesDialog: https://www.b4x.com/android/forum/threads/b4x-b4xpreferencesdialog-cross-platform-forms.103842/#post-651047 The output of FormsBuilder is a json file that is loaded with: prefdialog.LoadFromJson(File.ReadString(File.DirAssets...: Multiline Text and Decimal Number. Note that you can set the height of multiline text fields. V1.10... B4A Library [B4X] BCTextEngine / BBCodeView - Text engine + BBCode parser + Rich Text View - Erel    Dec 31, 2024   (72 reactions)   tags: Label BBCode, text style, RTF component, B4X, ritchtext, rich text files from the assets folder.
Another example with a bit more logic is available here: https://www...
hello
- prevents the internal text from being parsed.
- Changes the text color. Example:
Hello... images. Omit the dir parameter for assets files.
'width and height are required for remote images... issue where setting BBLabel.Text to an empty string didn't remove the text.
- v1.71 - New Font tag... B4J Library XLUtils / jPOI 5 - Read and write MS Excel workbooks - Erel    Aug 4, 2024   (40 reactions) As XLReaderResult = XL.Reader.ReadRange(File.DirAssets, "Countries of the world.xlsx"... result As XLReaderResult = XL.Reader.ReadSheetByName(File.DirAssets, "Countries of the world.xlsx... = XL.Reader.ReadRange(File.DirAssets, "Countries of the world.xlsx", "Sheet1!B3:E1000... data from a workbook. Can read the complete workbook, a single sheet or one or more ranges. Ranges... such cells, when needed, with empty strings. Later when you read the data you can use result.GetDefault... B4A Question Copiar formato de celdas y agregar imagen en EXCEL - Peter Simpson (first post)    Apr 23, 2020 Yes, https://www.b4x.com/android/forum/pages/results/?query=Read+text+file+from+Assets... B4A Example Getting file info using uri from content chooser or from received shared file - example - Nokia    May 4, 2020   (23 reactions) example of getting file property information from uri provided by content chooser or received file shared to the app. Curtesy of Erel’s example: Received Share. Shows File name, Mime Type, date modified, file size and a list of all columns from that particular content provider. updated code to show information from Gallery content.... B4A Library [B4X] B4XPreferencesDialog - Cross platform forms - Erel    Nov 12, 2021   (52 reactions)   tags: preference, B4X, builder, B4X B4XPreferencesDialog .104670/ The template file is loaded with: prefdialog.LoadFromJson(File.ReadString(File.DirAssets... Result = xui.DialogResponse_Positive Then PrintOptions(Options1, TextArea1) End If The data map... and DefaultHintLargeSize fields. V1.73 - Color field accepts text input: 112412 New dependency... that can be used to provide more information. Note that the explanation text is part of the template... method). V1.62 - Fixes an issue in B4A where the dialog can scroll to one of the text fields after... Page: 1   2   3   4   5   6   7   |