Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-22-2006, 05:38 PM
pjaiswal pjaiswal is online now
Registered User
 
Join Date: 01-26-2006
Posts: 30
Perform search in a particular area of a Text file.

Hello,

I have this text in a text file

GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7CF9A939-1F64-4E37-9A2B-9CA71C9CE5EF}.Debug|Win32.ActiveCfg = Debug Unicode|Win32
{7CF9A939-1F64-4E37-9A2B-9CA71C9CE5EF}.Debug|Win32.Build.0 = Debug Unicode|Win32
{7CF9A939-1F64-4E37-9A2B-9CA71C9CE5EF}.Release|Win32.ActiveCfg = Release Unicode|Win32
{7CF9A939-1F64-4E37-9A2B-9CA71C9CE5EF}.Release|Win32.Build.0 = Release Unicode|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection

My question is that how can I perform search in a particular area of this text file. For example if I need to search for a particular word say Release|Win32 only in the area between GlobalSection(SolutionConfigurationPlatforms) = preSolution and GlobalSection(ProjectConfigurationPlatforms) = postSolution how would I do that? How can I restrict my search only to a few lines and not the whole file?

Thanks.
Reply With Quote
  #2  
Old 05-23-2006, 07:47 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
You would need to write some script code or a program to parse the file for the information you're looking for.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 04:13 AM.


Copyright © 1999-2023 Kinook Software, Inc.