# Read only first word of line from line with $fscanf()

**URL:** <https://verificationacademy.com/forums/t/read-only-first-word-of-line-from-line-with-fscanf/31324>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, fscanf\
**Created:** [December 17, 2015, 8:20am UTC](https://verificationacademy.com/forums/t/read-only-first-word-of-line-from-line-with-fscanf/31324 "2015-12-17T08:20:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [December 19, 2015, 11:54pm UTC](https://verificationacademy.com/forums/t/read-only-first-word-of-line-from-line-with-fscanf/31324/6 "2015-12-19T23:54:01Z")

</div>

_In reply to [Vaino](https://verificationacademy.com/forums/t/read-only-first-word-of-line-from-line-with-fscanf/31324/5):_

The specification for the formatting string in SystemVerilog is very basic, but there are backward compatibility issues that prevent extending it to match the C++ formatting capabilities directly. The only way to access the exact formatting capabilities of C++ is to import the routines through the DPI.

---

_[View the full topic](https://verificationacademy.com/forums/t/read-only-first-word-of-line-from-line-with-fscanf/31324)._
