Home > IB Computer Science 2012, IB Computer Science 2013 > Mastery Factor: Parsing a text file

Mastery Factor: Parsing a text file

January 22, 2013 Leave a comment Go to comments

Parsing a text file or other data stream

Using the built-in wrapper classes such as Integer and Double with their methods parseInt(String) and parseDouble(String) is considered a trivial use. An input data stream, such as from a file, the keyboard or a network, which consists of character bytes representing text, should be split into separate components in some way.  The use of String.split() or java.util.StringTokenizer is acceptable.  The components must then be recognised as belonging to a particular set, each with a particular processing requirement.  Taking lines from a text file in csv or similar formats and creating record-style object instances is an acceptable use.  In this type conversion using Integer.parseInt() etc is fine.  The formats and the process of interpretation must be discussed in the data structures and algorithms of stage B.

https://retrosnob.files.wordpress.com/2011/11/subject-report-may-2006.pdf

Thanks Blanca.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s