B4J Question Problem accessing File.DirData (FileNotFoundException) [solved, nasty...] - Didier9    Oct 11, 2021
This line of code:
su.SaveCSV2( File.DirData( AppName ), vers, ",", lstCSV, hdr )
where
vers = "C1A0501 v0.4.0 FAN 2021-10-11 094328.csv"
AppName = "R9_B4J"
causes this error:
Error occurred on line: 3817 (Main)
java.io.FileNotFoundException: C:\Users\<my... usage of File.DirData in the program and they all crash now :(
Of course, the folder... Bug? B4J 3.6: File.DirData ToolTip Invalid Description - rwblinn    Aug 24, 2015 Noticed when selecting
File.DirData
no tooltip given but info "Invalid Description" instead.... B4J Question File.DirData has red squiggly underline... why? - Erel (first post)    Oct 6, 2020   (2 reactions) Tip: easier to use XUI.DefaultFolder + XUI.SetDataFolder.... B4J Question how to using File.DirDATA ? - Erel (first post)    Aug 26, 2015 You can use any string you like. The AppName value will be used to create the data folder.... B4J Code Snippet B4J Linux app: log file home folder - peacemaker    Feb 23, 2025   (1 reaction) If File.Exists(File.DirData(appname), appname) = False Then File.MakeDir(File.DirData(appname), appname) End If #if Release others.RedirectOutput(File.Combine(File.DirData(appname), appname), "logs.txt") #end if #else #if Release and Production RedirectOutput(File.DirData(appname), "logs.txt"... be used: 161965 And do not forget everywhere in the project (where File.DirData is needed) to refer... B4J Tutorial UI apps packaging - self contained installers - Erel    May 25, 2020   (29 reactions)   tags: Installer Apps B4J, UI apps packaging install is a read-only folder. Any attempt to write to File.DirApp will fail (you should use File.DirData... Other B4J v9.00 BETA is available for download - Erel    May 27, 2021   (37 reactions) I'm happy to release B4J v9.00 BETA. Download link: www.b4x.com/b4j/files/beta.exe Improvements: IDE performance - several cases where the typing speed became slow were fixed. The speed difference in those cases is significant. #PackagerProperty can be used multiple times with the same key. Internal packager supports packaging non-ui apps (windows only for now). The size of a zipped non-ui package is around 14mb. File.DirData / XUI.DefaultFolder on Mac point to ~/Library/Application... B4A Tutorial [B4X] Features that Erel recommends to avoid - Erel    Dec 6, 2023   (96 reactions) / DirLibrary / DirTemp / DirData / DirDefaultExternal / GetSafeDirDefaultExternal -> XUI... B4J Code Snippet Data Folder - Erel    Jan 3, 2016   (17 reactions)   tags: B4J Writable Data Folder, dirData Edit: This method is now available internally with File.DirData.
Windows apps are installed by default under Program Files. Starting from Windows Vista, Program Files folders are read-only. This means that writing to File.DirApp will fail.
The following code returns a writable folder based on the platform:
Sub GetDataFolder (AppName As String) As String
Dim os As String = GetSystemProperty... B4J Question PyBridge in WebApp in Linux Docker Container - Erel (first post)    Feb 8, 2026   (1 reaction) This is the default path: opt.PyBridgePath = File.Combine(File.DirData("pybridge"), $"b4x_bridge_${Utils.PythonBridgeCodeVersion}.zip"$) File.DirData is usually writable. And you can change it by setting Options.PyBridgePath.... Page: 1   2   3   4   5   6   7   |