B4J Library [B4J] WebGL Library - max123    Mar 02, 2025   (20 reactions) To know where DirData points on your system you can use: Log(File.DirData("B4XWebGL")) where B4XWebGL is not mandatory, but it is just to mantain compatibility with my example demos distribuited with this library. You can change it's name but then you need to change it on all example demos and on al B4J Code Snippet B4J Linux app: log file home folder - peacemaker    Feb 23, 2025   (1 reaction) DirData is needed) to refer such path for shared files: Sub Folder As String Dim res As String #if B4J #if LinuxDebugging or LinuxProduction res = File.Combine(File.DirData(Main.appname), Main.appname) #else res = File.DirData(Main.appname) # B4J Question Run my app. as Administrator - DonManfred (first post)    May 20, 2023   (3 reactions) You should´nt use this folder. You should store and load data to http://snapshots.basic4android.de/trash4169.png File.DirData is a writeable path to store Data... B4J Tutorial MacSigner - Building notarized Mac packages - Erel (first post)    May 20, 2021   (3 reactions) Tip: currently File.DirData (= XUI.DirDefault) is the same as File.DirApp on Mac. This is a restricted path once you build an app bundle / package. In the next version of B4J it will instead return: ~/Library/Application Support/ This is similar to the way it works in Windows. For now, you can get B4A Tutorial [B4X] Features that Erel recommends to avoid - Erel    Dec 06, 2023   (89 reactions) File.DirRootExternal -> ContentChooser / SaveAs https://www.b4x./#content File.DirInternal / DirCache / DirLibrary / DirTemp / DirData / DirDefaultExternal / GetSafeDirDefaultExternal -> XUI.DefaultFolder Round2 -> NumberFormat, B4XFormatter: Most usages of Round2 are to format numbers. Modifyin Share My Creation [B4X Tool] - B4XIDEViewer V. 1.0 - moster67    Mar 17, 2019   (38 reactions) Each Bitmap is sent separately over the network. Only present in OpenCV version. LogMatImgList (MatList As List) Takes a list of OCVMATs and convert them into Bitmap(s) to be shown in B4XIDEViewer. The list is sent over the network and then unpacked. Only present in OpenCV version. LogSavedImage (Di B4J Question Problem accessing File.DirData (FileNotFoundException) [solved, nasty...] - Didier9 (first post)    Oct 11, 2021   (1 reaction) I think I found the problem, there was a non-printable character in the file name, so it did not show anywhere...
I found it by trying to create a small project showing the problem. When I copied the filename from the B4J error message Logs window into the forum editor, it showed the typical rectan B4A Question How to locate the External Libraries Folder used by B4A, B4J, B4i - alwaysbusy (first post)    Feb 01, 2023   (3 reactions) Use: Log(File.DirData("Anywhere Software\\B4J") & "\b4xV5.ini") It will return something like: C:\Users\<user>\AppData\Roaming\Anywhere Software\B4J\b4xV5.ini Alwaysbusy B4J Question B4J 9.00 XUI.DefaultFolder - Erel (first post)    Jun 09, 2021   (1 reaction) Previously File.DirData returned the same folder as File.DirApp on Mac. This isn't good enough as it is a read-only folder on Mac, once you build a package. It is very similar to Windows. B4J Question [SOLVED]Inno Setup Problem - Zvi (first post)    May 31, 2023   (3 reactions) Brilliant!
Thanks so much, both Chris2 and Magma.
I used Dim UserDir As String = File.DirData("Checkers")
for both read and write (obviously :) )
File.Writemap(UserDir, "NmicroCore", Main.checkers)
Works perfectly. Saves the data file in AppData\Roaming (see attachment). Page: 1   2   3   4   5   6   7   Powered by ColBERT |