I changed a variable name from
somethinglong
tos
But ... why? Does a "oneliner" make your answer better? Or does having some clearer names instead of that cryptic s
and sn2
make your answer better? I think the latter.
Dim result = String.Join(
",",
File.ReadAllLines(newFile1)
.Select(Function(input) input.Split(","c)(1))
)
Your code will always overflow somewhere on some devices, so I would not try to format your code in a way that it does not overflow, focus on readability instead.
That said, yes it is strange that accepting an answer changes the layout, I'd consider that a bug (although a minor, less important one).