المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Read Text



C# Programming
06-16-2009, 11:50 AM
I run a c# application which returns results in the format of the following text:

Is this example below, I would like to return the text "SizeStoredInPagingFiles: 4476456"
I always need to get the last text such as the above in this sample.

"Microsoft (R) Windows Script Host Version 5.6\r\nCopyright (C) Microsoft Corporation 1996-2001. All rights reserved.\r\n\r\n-----------------------------------\r\nWin32_OperatingSystem instance\r\n-----------------------------------\r\nSizeStoredInPagingFiles: 4476456\r\n"


"Microsoft (R) Windows Script Host Version 5.6\r\nCopyright (C) Microsoft Corporation 1996-2001. All rights reserved.\r\n\r\n-----------------------------------\r\nWin32_OperatingSystem instance\r\n-----------------------------------\r\nversiontext : 2\r\n"

In the above sample I would like to return "versiontext : 2"

How do I do this please?