I'm just wondering if it's possible to read the content of text file with specific index?
What I mean is like this, for example:
I have text file like this, 'test1.txt'
12345678900 ## ## readthistext
54321123440 ## ## hellothistext
I just want to read the content of text file after of the hashtag.
To read the text after the
#characters you must read the file content up to the#characters first. Also, in PowerShell you normally read files either line by line (viaGet-Content) or completely (viaGet-Content -Raw). You can discard those parts of the read content that don't interest you, though. For instance:The above will read the file
C:\input.txtand for each line remove the text from the beginning of the line up to the last#character.