Thread: Wierd txt document

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    183

    Wierd txt document

    Hey people !

    Okay, I reckon this is really wierd. I made a txt document for some random program I was writing, consisting of only hex values. When the program reads the file, it reads it as expected, but if I open the document manually, it comes up with 900 of these : ㌰

    The file is hidden and encrypted if that matters. Why is this happening ?
    Cheers for your time.

    EDIT : Oh, and i'm on Windows XP Pro.

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    If you encrypted a file, why does it surprise you that you can't read what Notepad opens?

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Use a hex editor.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    183
    There are other txt files that are encrypted, and I can read them.
    Oh, and they too consist only of hex values I might add.

    It's automatically set to trust the user I use.
    Last edited by Necrofear; 05-22-2006 at 01:52 PM.

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    There are other txt files that are encrypted, and I can read them.
    Oh, and they too consist only of hex values I might add.
    Perhaps it just so happens that these other encrypted text only contain values within some human readable range, e.g. ASCII. You could use some binary to text encoding to ensure that it is human readable.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL Wierd **** - Order of Drawing Stuff?
    By Tonto in forum Game Programming
    Replies: 9
    Last Post: 11-09-2006, 09:56 PM
  2. editing a txt document
    By ojschubert in forum C Programming
    Replies: 6
    Last Post: 02-28-2005, 03:49 PM
  3. Document Class and Dialog Windows :: MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 12-01-2002, 12:27 AM
  4. MultiDocument And MultView (and per document) :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 04-09-2002, 09:00 AM
  5. Getting document point co-ordinates
    By swordfish in forum C++ Programming
    Replies: 2
    Last Post: 09-05-2001, 12:37 PM