| Blockland Forums > Modification Help |
| File I/O Tutorial |
| << < (2/6) > >> |
| Nexus:
--- Quote from: otto-san on April 12, 2011, 05:38:52 PM ---openForAppend --- End quote --- Thar she blows. What is the best way for removing a line of data? |
| otto-san:
--- Quote from: Nexus on April 12, 2011, 10:37:30 PM ---Thar she blows. What is the best way for removing a line of data? --- End quote --- What exactly do you mean? |
| Destiny/Zack0Wack0:
--- Quote from: Nexus on April 12, 2011, 10:37:30 PM ---Thar she blows. What is the best way for removing a line of data? --- End quote --- Read each line and store them into an array. Remove the line by removing the original line stored in the array, then loop through the array and write all the lines again. |
| Nexus:
--- Quote from: Destiny/Zack0Wack0 on April 13, 2011, 12:51:49 AM ---Read each line and store them into an array. Remove the line by removing the original line stored in the array, then loop through the array and write all the lines again. --- End quote --- Gah thats awful. If I have a text document that has thousands of lines, the only way to change one piece of information is by completely rebuilding the database? Iban and you were right, using Fileobjects for saving and loading is hopeless. |
| Red_Guy:
I dont suppose you know how to get the time and date of a file? ... like what is displayed when you go to load a save? |
| Navigation |
| Message Index |
| Next page |
| Previous page |