Wednesday, December 03, 2008     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: find a string in a file
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
willbi
Posts: 63
Online: User is Offline
7/24/2007 7:37 AM  
Hello all again.
I need to parse a big file to find a string. So I open it for reading (infile) and gets each line and compare it to my string... but it takes a quite long time..
Is there a way to fo it faster? Is there a function to find a string in a file...
Thanks.
Dave Elder
Moderator
Posts: 150
Online: User is Offline
7/24/2007 1:41 PM  
Hi,

I suggest that you do this outside Skill. If using XP, try using the findstr command.
eg:

system("findstr Unison c:\\Cadence\\SPB_16.0\\Update.ini") returns 0 if the text is found, 1 if not.

Cheers, Dave

Dave Elder
Tait Electronics
CDL
Posts: 9
Online: User is Offline
7/25/2007 8:32 AM  
I've found it handy to hand off certain functions such as text parsing to a PERL program from within SKILL and pick up the output from PERL and continue in the SKILL program.
willbi
Posts: 63
Online: User is Offline
7/27/2007 6:57 AM  
Hello all.
Thanks Dave for your reply. I tried the way you suggest but the problem is that system procedure opens a visible command window under XP each time it is called.
So it's not convenient.
In fact, it seems to be long, so I added a form with informations changind according to what the process does and it now seems faster ;-)
Posting to forums is available to community members only.
Login or Register

Forums > Silicon-package-board > Shared code - SKILL > find a string in a file


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.