Black Rectangles in Text Files

This is a discussion on Black Rectangles in Text Files within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Long story short, I downloaded a C++ library, which had no platform specified, I'm using Windows XP. All the *.h ...

  1. #1
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913

    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,337
    > 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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    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, 12:36 AM
  3. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 01: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, 09:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21