# Phrases from string work, but from file failes

**URL:** <https://swi-prolog.discourse.group/t/phrases-from-string-work-but-from-file-failes/1673>\
**Category:** Help!\
**Created:** [December 29, 2019, 6:55pm UTC](https://swi-prolog.discourse.group/t/phrases-from-string-work-but-from-file-failes/1673 "2019-12-29T18:55:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [December 29, 2019, 10:59pm UTC](https://swi-prolog.discourse.group/t/phrases-from-string-work-but-from-file-failes/1673/5 "2019-12-29T22:59:29Z")

</div>

```prolog
assertion(Result = Expected)

```

See: [Little testing tip](https://swi-prolog.discourse.group/t/little-testing-tip/1371)

Also see:  
[The string type and its double quoted syntax](https://www.swi-prolog.org/pldoc/man?section=strings)  
[What type is a single quoted string?](https://swi-prolog.discourse.group/t/what-type-is-a-single-quoted-string/1102)

* * *

```prolog
:- expects_dialect(sicstus).

```

I didn’t know that could be done. Learn something new everyday.

---

_[View the full topic](https://swi-prolog.discourse.group/t/phrases-from-string-work-but-from-file-failes/1673)._
