03-16-2024, 10:03 AM
Hi ZS,
1] Did you try using the command line csc C# compiler that I described how to use in a previous post. If you want me to help you with this then please start a new thread post for this topic, where we can go through all the steps systematically.
2] Your C# code has various errors that mean it wouldn't work as a SB extension, mostly to do with referencing SmallBasicLibrary and use of Primitive type.
3] It looks like the extension would read selected lines from a file into a single concatenated string with lines deliminated by newline character. Why not just use the existing method File.ReadLine to read required lines into an array.
1] Did you try using the command line csc C# compiler that I described how to use in a previous post. If you want me to help you with this then please start a new thread post for this topic, where we can go through all the steps systematically.
2] Your C# code has various errors that mean it wouldn't work as a SB extension, mostly to do with referencing SmallBasicLibrary and use of Primitive type.
3] It looks like the extension would read selected lines from a file into a single concatenated string with lines deliminated by newline character. Why not just use the existing method File.ReadLine to read required lines into an array.