Cody

Problem 779. Read a Text file from a URL and create an {N x 1} Cell Array

Given a URL string for a text file, read the text file and store the contents into a cell array.

The text file will have contiguous characters on different lines.

Inputs:

URL/File string (eg 'http://www.toobigforemail.com/cryptkeeper.toobig?npp=xgz8xdyx') (This is close but not a valid link)

This is a link to a text file.

Note: I tried to use my Google WebPage but it is an "https".

urlread for 2012a does not like https sites. (2012b???)

Typical Text File:

read2cell.txt

abcd

wxyz

Output:

{2x1 cell}

'abcd'

'wxyz'

This is intended as an introductory function usage.

Follow up will be, "Is it a valid scrabble word?", once I find that scrabble dictionary.

Solution Stats

28.13% Correct | 71.88% Incorrect
Last Solution submitted on Jan 13, 2018

Problem Comments