beginner questions

Hello everyone
Do you know how can I read the first word of a line of a file ?
Thanks

http://documentation.xojo.com/api/files/textinputstream.html

Use the example there and replace ReadAll with ReadLine.

Also see http://documentation.xojo.com/api/data_types/string.html#string-split

And here are some User Guide topics that might help:

And there is an example included with Xojo that you might like to pull apart and learn from. Check out the XojoText example in Example Projects/Sample Applications/XojoText.xojo_binary_project