• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Write to File without double quotes

Stats

  • State Verified Answer
  • Replies 4
  • Subscribers 160
  • Views 9076
  • Members are here 0
More Content

Write to File without double quotes

khuranav007
khuranav007 over 3 years ago

When I write a string to file then the string gets written with double quotes.  How can this string be written without double quotes?

I have played with parseString() and buildString() and couple of other SKILL functions but so far haven't figured this out - any clues?

"GND_TX_LO,GND_TX_BALUN,M4"

Thanks for help

  • Sign in to reply
  • Cancel
  • eDave
    0 eDave over 3 years ago

    How can we possibly help you without seeing the command string that you are using?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • khuranav007
    0 khuranav007 over 3 years ago in reply to eDave

    Thanks for the response Dave.  I assumed that this is a common problem.

    If you mean how I am writing to file here's the command:

    fprintf(myport "%L\n" getVal)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • eDave
    +1 eDave over 3 years ago in reply to khuranav007

    Use %s for strings. ie. fprintf(myport "%s\n" getVal)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • khuranav007
    0 khuranav007 over 3 years ago in reply to khuranav007

    Hi Dave,

    I think I know why you asked for the command string Slight smile

    I replaced %L to %s and it works now.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information