File

Reading a file

Surprised cat

So far, all of the data has been in a worksheet. Here's pseudocode for extracting data from a worksheet into an array:

While there is more data
    Get some data
    If the data meets some criteria Then
        Copy it to an array
    EndIf
Loop

In RL, data that comes from other systems, or is downloaded from the Web, might not be in a worksheet. Often it will be in a plain text file. Your program will need to extract data from that.

Here's pseudocode for extracting data from a file into an array:

bc.

Keywords: