So I have this file with a number that I want to use.
This line is as follows:
TimeAcquired=1433293042
I only want to use the number part, but not the part that explains what it is.
So the output is:
1433293042
I just need the numbers.
Is there any way to do this?
There is a very simple way to do this and that is to call
Split()
on the string and take the last part. Like so if you want to keep it as a string:If you need this as an integer: