Abdulaziz93 Member Licensed User Longtime User Oct 19, 2013 #1 Hi. I'm asking how to save my application data if i closed the application like I want to save 1.label 2. Array Could you please show me the code I see in the forums but I can't understand it how I can make an .txt file then save data on it *I'm beginner and new Thanks ♡ Last edited: Oct 20, 2013
Hi. I'm asking how to save my application data if i closed the application like I want to save 1.label 2. Array Could you please show me the code I see in the forums but I can't understand it how I can make an .txt file then save data on it *I'm beginner and new Thanks ♡
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2013 #3 Please do not "bump" your posts. What do you mean with saving a label? Do you want to save the label text? Is it important that the saved file is a text file? If not then you can use KeyValueStore to save the array. Upvote 0
Please do not "bump" your posts. What do you mean with saving a label? Do you want to save the label text? Is it important that the saved file is a text file? If not then you can use KeyValueStore to save the array.
Abdulaziz93 Member Licensed User Longtime User Oct 20, 2013 #4 Erel said: Please do not "bump" your posts. What do you mean with saving a label? Do you want to save the label text? Is it important that the saved file is a text file? If not then you can use KeyValueStore to save the array. Click to expand... yeah i want to save i label.text i have application that change a labels everyday but if i close the program its gone i want to save the label.text and my array could you help me please? Upvote 0
Erel said: Please do not "bump" your posts. What do you mean with saving a label? Do you want to save the label text? Is it important that the saved file is a text file? If not then you can use KeyValueStore to save the array. Click to expand... yeah i want to save i label.text i have application that change a labels everyday but if i close the program its gone i want to save the label.text and my array could you help me please?
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2013 #5 See these tutorials: Text files KeyValueStore class - Simple and efficient key/value data store Upvote 0
Abdulaziz93 Member Licensed User Longtime User Oct 20, 2013 #6 sorry until now i cant understand how to save a label >.< Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2013 #7 Code: Copy File.WriteString(File.DirRootExternal, "1.txt", Label1.Text) Upvote 0
Abdulaziz93 Member Licensed User Longtime User Oct 22, 2013 #8 Erel said: Code: Copy File.WriteString(File.DirRootExternal, "1.txt", Label1.Text) Click to expand... thank you very much this was really helpful but one little question if the user doesnt have a sdcard or how i can save the .txt file on the device? Upvote 0
Erel said: Code: Copy File.WriteString(File.DirRootExternal, "1.txt", Label1.Text) Click to expand... thank you very much this was really helpful but one little question if the user doesnt have a sdcard or how i can save the .txt file on the device?
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2013 #9 See this tutorial: Text files Upvote 0