Sergey_New Well-Known Member Licensed User Longtime User Mar 2, 2025 #1 Please tell me if it is possible to use this example to save and read a text file with an extension different from .txt. For example .ged Thank you very much!
Please tell me if it is possible to use this example to save and read a text file with an extension different from .txt. For example .ged Thank you very much!
teddybear Well-Known Member Licensed User Mar 3, 2025 #2 The answer is yes. B4X: Wait For (FileHandler1.SaveAs(in, "*/plain", "NewFile.ged")) Complete (Success As Boolean) Upvote 0
The answer is yes. B4X: Wait For (FileHandler1.SaveAs(in, "*/plain", "NewFile.ged")) Complete (Success As Boolean)
Sergey_New Well-Known Member Licensed User Longtime User Mar 3, 2025 #3 teddybear, thank you! The file is saved, but it is impossible to read it after saving. I needed to ask my question differently: ...read and save. Upvote 0
teddybear, thank you! The file is saved, but it is impossible to read it after saving. I needed to ask my question differently: ...read and save.
teddybear Well-Known Member Licensed User Mar 3, 2025 #4 You can load it with same mimetype ("*/plain") B4X: cc.Show("*/plain", "Choose file") Last edited: Mar 3, 2025 Upvote 0
Sergey_New Well-Known Member Licensed User Longtime User Mar 3, 2025 #5 I did this: B4X: cc.Show("*/plain", "Choose text file") The file is not readable. Upvote 0
Sergey_New Well-Known Member Licensed User Longtime User Mar 3, 2025 #7 teddybear said: Try "*/*" Click to expand... This helped, thank you! Upvote 0