O'Reilly logo

Learning Processing, 2nd Edition by Daniel Shiffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

18

Data Input

A million monkeys were given a million typewriters. It’s called the Internet.

—Simon Munnery

In this chapter:

 Manipulating strings

 Reading and writing text files

 Tabular data

 Word counting and text analysis

 XML and JSON data

 Threads

 Using data from APIs

This chapter will move beyond displaying text and examine how to use String objects as the basis for reading and writing data. I’ll start by covering more sophisticated methods for manipulating strings, searching in them, chopping them up, and joining them together. Afterward, I will show how these skills allow you to use input from data sources such as text files, web pages, XML feeds, JSON data, and third party APIs, and you’ll also take a step into the world of data visualization. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required