Original Post
🔒 Locked
[java] Parsing methods??
Advertisement
Well, assuming you have already read in the line to be parsed, then two ways that come to mind to get the value after the '=' are
[edited by - simb on January 24, 2004 2:54:53 AM]
a = "value=21"
then
String [] b = a.split( "=", 2); // b[1] is everything after the '='
or
String b = a.substring( a.indexOf( '=') +1); // b is everything after the '='
[edited by - simb on January 24, 2004 2:54:53 AM]
Also, it supports comments.
***
For Java games and Java related resources, go to http://www.javaengines.dk
***
***
For Java games and Java related resources, go to http://www.javaengines.dk
***
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement