Theera Expert Licensed User Longtime User Jun 8, 2022 #1 Hi all, Today I have studied this . I wish to save file as html file ,but it saved as test.html.txt. Please someone to help me learn the code. Best Regards Theera
Hi all, Today I have studied this . I wish to save file as html file ,but it saved as test.html.txt. Please someone to help me learn the code. Best Regards Theera
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2022 #2 Change the SaveAs line to: B4X: Wait For (FileHandler1.SaveAs(in, "text/html", "NewFile.html")) Complete (Success As Boolean) Upvote 0
Change the SaveAs line to: B4X: Wait For (FileHandler1.SaveAs(in, "text/html", "NewFile.html")) Complete (Success As Boolean)
Theera Expert Licensed User Longtime User Jun 9, 2022 #3 Erel said: Change the SaveAs line to: B4X: Wait For (FileHandler1.SaveAs(in, "text/html", "NewFile.html")) Complete (Success As Boolean) Click to expand... Please let me to compile FileHandler.bas for my private library. I think it can use other cases i.e. save as picture file with the camera tutorials(save as jpg file or png file.) Do you have any addition advises for me? Upvote 0
Erel said: Change the SaveAs line to: B4X: Wait For (FileHandler1.SaveAs(in, "text/html", "NewFile.html")) Complete (Success As Boolean) Click to expand... Please let me to compile FileHandler.bas for my private library. I think it can use other cases i.e. save as picture file with the camera tutorials(save as jpg file or png file.) Do you have any addition advises for me?