Thread: Formatting the contents of a text file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    A few things first:

    This is C, not C++. You posted in the C++ forum. Did you want to write C?
    You are using UNIX functions, not standard C or C++ functions. It won't run on other platforms, like Windows. Do you want this?

    cctype.h is not a header. It's either ctype.h if you're using C or cctype if you're using C++.

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    6
    Quote Originally Posted by robwhit View Post
    A few things first:

    This is C, not C++. You posted in the C++ forum. Did you want to write C?
    You are using UNIX functions, not standard C or C++ functions. It won't run on other platforms, like Windows. Do you want this?

    cctype.h is not a header. It's either ctype.h if you're using C or cctype if you're using C++.
    I forgot to mention that I want to use unix functions (note to self.. they are not methods...) doh :P It can be written in either C or C++, but as you say, seeing as how the chunk of code I got ahold of and tried to put to use was written in C rather than C++, it would indeed make sense to write it in C :S. Thank you for pointing out my mistake with the header.

    I guess I will repost this query in the C forum and put a link to the new thread in this post (I will shortly edit it). My apologies for posting in the wrong place.

    ***I have now posted this same query in the C forums See here. ***

    I would be greatful if someone could delete this thread
    Last edited by dagorsul; 04-29-2008 at 12:45 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  2. dos game help
    By kwm32 in forum Game Programming
    Replies: 7
    Last Post: 03-28-2004, 06:28 PM
  3. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM
  4. displaying contents of a text file
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 02-26-2002, 02:05 PM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM