Coffeehouse Thread

20 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Reading int from file in C#

Back to Forum: Coffeehouse
  • User profile image

    ,blowdart wrote


    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

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

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.