I want to ask for the string.
Search the file for that string.
If the string is located in the file, write the line to a new file.
Here is an example of a line in the file.
5/11/2005 8:20:21 PM Print Information None 10 NT AUTHORITY\SYSTEM PMLPRINT Document 436, Microsoft Word - owned by bkennedy was printed on 1E-08-HP1 via port IP_170.52.23.20-2. Size in bytes: 739836; pages printed: 1
I want to pull out the date, time, owner and number of pages printed and write it to a new file
How can I do this?
read file for a string and print the line to a file
Moderators: JRL, Dorian (MJT support)
Use ReadLn to read through the file and use MidStr, Position and Length commands to extract the strings.
MJT Net Support
[email protected]
[email protected]