Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

NeilSM

NeilSM NeilSM

Niner since 2009

  • Expert to Expert: The Basics of SmallBasic

    Documentation for InsertLine says:

    InsertLine
    Opens the specified file and inserts the contents at the specified line number.
    This operation will not overwrite any existing content at the specifid (sic) line.


    Should say:
    Opens the specified file and inserts the contents before the specified line number.
    This operation will not overwrite any existing content at the specified line.
    If the selected line number is greater than the number of lines in the file the line will be appended.
    If the selected line number is 0 the line will be ignored - no alteration.

    Example:
    my_return = File.InsertLine("C:\my_file.txt",1,"This is a test " + 1)
    TextWindow.WriteLine(my_return)
    my_line = File.ReadLine("C:\my_file.txt",1)
    TextWindow.WriteLine(my_line)

  • Expert to Expert: The Basics of SmallBasic

    Just type the first one or two letters of the word, scroll up or down to the desired (key)word and press TAB.