# Extracting a substring after identifying a marker

**URL:** <https://forum.kirupa.com/t/extracting-a-substring-after-identifying-a-marker/301459>\
**Category:** Uncategorized\
**Created:** [December 9, 2009, 5:01pm UTC](https://forum.kirupa.com/t/extracting-a-substring-after-identifying-a-marker/301459 "2009-12-09T17:01:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nenene](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nenene](https://forum.kirupa.com/u/nenene)\
**Post date:** [December 9, 2009, 5:01pm UTC](https://forum.kirupa.com/t/extracting-a-substring-after-identifying-a-marker/301459/1 "2009-12-09T17:01:32Z")

</div>

Hi, I’m really new to C:  
just want to be able to read a string from a file, and then search for a particular word, and having found that word, extract the next string that is delimited by spaces

ie:

kjsdiojfir word stringtoextract aohoidhhr

thanks,
