B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    Nov 1, 2024   (46 reactions) Button1_Click File.WriteString(File.DirInternal, "test.txt", "test") 'just...-files.132731/#post-838166 List of classes or libraries that can be used to access secondary storages: ContentChooser (Phone libray) - allows the user to select a resource or file using external... a folder, your app can read and write from that folder. Doesn't require any permission. Not all... the simpler version of ExternalStorage. Allows the user to choose the place where the file will be saved... B4J Question losing character when using File.WriteString - ArmedEmperor977 (first post)    Feb 10, 2022
The backslash indicates that the next character should treated "as is" (not as a special ... B4J Question Problem with File.WriteString i File.ReadString - Zlgo (first post)    Mar 3, 2020 () As String)
Dim bb As B4XBytesBuilder
bb.Initialize
bb.Append(File.ReadBytes(File...("ascii"), ("" & DateTime.Now).GetBytes("ascii"))
File.WriteBytes... B4A Library [B4X] CSVParser - CSV parser and generator - Erel    Jun 29, 2020   (33 reactions)   tags: parser, csv CSV strings: Dim parser As CSVParser parser.Initialize Dim table As List = parser.Parse(File.ReadString(File.DirAssets, "1.csv"), ",", False) For Each row() As String In table 'work with row Next Dim s As String = parser.GenerateString(table, ",") File.WriteString(File.DirApp, "1.csv", s) ...CSV - comma separated values format. The various StringUtils libraries include methods for loading... B4A Question Problem File.WriteString - Permission denied - DonManfred (first post)    Mar 29, 2019 You can find an Example code here:
https://www.b4x.com/android/forum/threads/copy-a-file-from-internal-memory-to-sd-card.102705/
NOTE that it is a quite complicated Framework.... B4A Question File.Readstring & File.Writestring - Fabri    Aug 22, 2017 but if position doesn't exist the complier return me an error
Value1 = File.ReadString(File.DirInternal, "Text")
Value2 = File.ReadString(File.DirInternal, "Text2"... B4J Code Snippet Test if process is running as administrator on Windows - Erel    Feb 14, 2024   (9 reactions) Private Sub IsRunningAsAdmin As Boolean Try Dim f As String = GetEnvironmentVariable("SYSTEMDRIVE", "") & "\isadmin.txt" File.WriteString(f, "", "test") File.Delete(f, "") Return True Catch Return False End Try End Sub A bit hacky but should work. Windows only.... B4A Question File.WriteString Problem - Cableguy (first post)    Mar 14, 2016   (1 reaction)
I see in the documentation that DirRootExternal, DirInternal and DirDefaultExternal are labeled as ... B4A Tutorial Android Device Unique ID - Alternative to PhoneId - Erel    Jun 10, 2020   (8 reactions)   tags: SDK , "SDK_INT") If Api < 9 Then 'Old device If File.Exists(File.DirInternal, "__id") Then Return File.ReadString(File.DirInternal, "__id") Else Dim id As Int id = Rnd(0x10000000, 0x7FFFFFFF) File.WriteString(File... Activity_Create(FirstTime As Boolean) Log(GetDeviceId) End Sub Sub GetDeviceId As String Dim r... B4A Question To File.WriteString or Not to File.WriteString that is the question - klaus (first post)    Jun 22, 2011 Have a look here, post #1, for more explanations.
Best regards.... Page: 1   2   3   4   5   6   7   |