ImportText is useful in it's current state, but it would be helpful if it returned something meaningful for that rare occasion when it fails to import the text- maybe return 1 or the savefile if it succeeds, 0 if it fails? The latter might make more sense with the context of the function. Right now it just returns 0 every time, spitting out a system message if it fails.
Checking for non-displayable characters in the text you ImportText to make sure it's proper form for a savefile isn't very hard and it's not the end of the world, but this would still be convenient to have.
ID:658418
Apr 12 2012, 12:52 am
|
|||||||
| |||||||