Thread: Black Rectangles in Text Files

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912

    Black Rectangles in Text Files

    Long story short, I downloaded a C++ library, which had no platform specified, I'm using Windows XP. All the *.h files have those little black rectangles where there should be a Carriage Return/Line Feed, which I believe is a problem when transferring from Linux -> Windows.

    1) Is this going to be a problem in the library they're linked to as well?

    2) Can I / Do I need to go through the files and convert all the black rectangles?

  2. #2
    Senior Member joshdick's Avatar
    Join Date
    Nov 2002
    Location
    Phildelphia, PA
    Posts
    1,146
    If you know what conversion has to be made, why don't you do a simple find and replace?
    FAQ

    "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.

    "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > 1) Is this going to be a problem in the library they're linked to as well?
    Do you have the .cpp files for the library as well?

    Because if all you have is the .lib and .h files, you're onto a loser. Library files are much more specific to the environment for which they are built.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    Open it with something like "Programmer's File Editor" and then re-save it as an ASCII text file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help creating multiple text files
    By Tom Bombadil in forum C Programming
    Replies: 19
    Last Post: 03-28-2009, 11:21 AM
  2. Replies: 5
    Last Post: 02-11-2008, 01:36 AM
  3. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 02:59 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Reading binary files and writing as text
    By thenrkst in forum C++ Programming
    Replies: 8
    Last Post: 03-13-2003, 10:47 PM