Small Basic: Network Object


Today I will talk about Network Object in Small Basic programming language.

Network Object is very simple.  There are only two operations.  That’s all.  One is DownloadFile().  The other is GetWebPageContents().

Network.DownloadFile() downloads a network file into your PC’s temporary folder.  The downloaded file name will become such like C:\Users\Nonki\AppData\Local\Temp\tmpFD3C.tmp .  You can download HTML, PNG, JPG and so on.  This operation allow some programs using network files to be run offline after once run online.

Network.GetWebPageContents() gets HTML and text from network.  I made a sample program Blog Article List as CPP576.  This program makes a list of articles in this blog.

Network object runs only as desktop program from Small Basic IDE (not in browser).

Comments (1)

  1. Hmm. I wonder if the Network object should have more associated methods.

Skip to main content