Click here to Skip to main content
15,119,637 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
System.IO.StreamReader does not contain a definition for ReadWord and no extension method ;ReadWord accepting a first argument of type System.IO.StreamReader could be found (are you missing a using directive or an assembly reference?)
Posted
Comments
Nicholas Marty 20-Nov-13 7:17am
   
And what are you actually trying to accomplish? The StreamReader object doesn't have a method "ReadWord"... System.IO.StreamReader
phil.o 20-Nov-13 7:43am
   
So true.
BillWoodruff 20-Nov-13 20:53pm
   
Do you want to read a "word" meaning a certain number of bytes, or do you want to read a "word" meaning some group of characters separated from other characters by white-space characters ?

1 solution

Because it does not contain. You can use BinaryReader[^] for reading values, but as word is no CLR datatype, you can use ReadUInt16[^] for example.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900