It's not good practice to rely on "\n" as a new line indicator while parsing input coming from resources file. The problem is in the fact that not all systems are using it as a line separator. You may end up with white spaces at the end of input lines, or even missing other new line indicators and not counting them in at all. Deciding to use one, easily recognizable indicator for all files is the best thing to deal with this problem, it gives project consistency and it's easy to recognize and use by other developers. And what's most important it will work with files created on different machines with different OS.
MobilePack uses "|" character as line separator.
Thursday, 20 November 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment