Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Expert to Expert: The Basics of SmallBasic
Feb 15, 2009 at 5:35 PMInsertLine
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
Feb 15, 2009 at 12:54 AM