Coffeehouse Thread

20 posts

Reading int from file in C#

Back to Forum: Coffeehouse
  • User profile image
    figuerres

    ,blowdart wrote

    *snip*

    Well that's why you read the first two or three bytes and look for a byte order mark

    my point was not that there is no way to check.

    if you have a file and assume that it's 8 bit ASCII and try to use 8 bit bytes you might have problems in some cases. text files are not always 8 bit ASCII today. 

    just saying.

  • User profile image
    David7738

    unfortunately it is a uint not an int which can cause problems if you convert it to a long

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.