beesheep
(Eduardo Bernabe Sacahui Diaz)
July 6, 2017, 3:13pm
1
Hello,
I am trying to reproduce this with invoke method.
the invoke method states that there is no method for system.IO.StreamReader.
also tried with
arrLines = Split(entirePDF,Environment.NewLine) β this one just throws 1 letter if I output as
arrlines.tostring(0)
I also tried
pdfText.ToString.Split(β\nβ) but cannot assign char to string
can anyone help me pls,
Hi,
The Split function should work for what you are describing. I think you need (0) next to the character.
Split(entirePDF,Environment.NewLine(0))(0)
or
entirePDF.Split(Environment.NewLine(0))(0)
There are a couple ways to do that though.
Hope that helps solve it.
Thanks.
1 Like
beesheep
(Eduardo Bernabe Sacahui Diaz)
July 6, 2017, 3:26pm
3
Great, thatβs the solutionβ¦ thanks a lot
1 Like
hughabbott
(Hugh Abbott)
October 17, 2017, 6:00pm
4
this worked for me - it returned the second line from a text file
I read the my entire text file into varTemp
and then I wanted to extract the various lines
varTemp.Split(Environment.NewLine(0))(1)
this returned the second line
thank you ClaytonM & beesheept
2 Likes