Thread: File problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by zach
    1. I am not showing measures to get rid of "new lines" because I removed the various shots I took at the problem, in order to show the code that was bugged.
    That's good, but that also means we have no way of verifying what you did to try and remove the newlines.

    Quote Originally Posted by zach
    2. "Lack of knowledge": I would have thought that was what this forum is all about.
    That's targeted specifically to your comment that "The dangle issue in C seems a bigger problem than C itself." There's no point pre-judging a tool until you know how to use it.

    Quote Originally Posted by zach
    3. How I know the new route is better? The old route used a global array with 0-s and 1-s, guiding which descriptions to show / not to show. I was told, not to use globals - bad style. Therefore I consider the new routine a better one.
    Ah, I see. What I was curious about is how you got round this fgets+puts issue without actually solving the bug. The issue sounds orthogonal to the issue of a global array (i.e., what you described does sound like an improvement, but in a different though related area).

    Quote Originally Posted by zach
    3. "These days" this seems to be a reference to my age.
    It's a reference to the fact that man pages are older than the Web. I don't even know if you're older than Unix or younger than the Web (though since you've referred to previous programming experience I guess you're older than the iPhone )

    Quote Originally Posted by zach
    I am surprised given the skewness of the points you raise.
    What do you mean?

    Quote Originally Posted by zach
    Laserlight, Hi, I suggest you take another look at the code. You might see how the line skips came about. Zach K.
    I thought you said that there were no (unintended) line skips:
    Quote Originally Posted by zach
    If that were the case there would be a line skipped after each intended line, which there isn't.
    Last edited by laserlight; 09-29-2019 at 11:26 AM.
    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. File handing and saving records to file problem
    By loveable in forum C Programming
    Replies: 18
    Last Post: 12-29-2012, 09:53 AM
  2. file input and file pointer problem
    By drater in forum C Programming
    Replies: 6
    Last Post: 02-18-2008, 10:43 AM
  3. Replies: 3
    Last Post: 11-21-2006, 07:26 PM
  4. Replies: 3
    Last Post: 10-20-2006, 07:59 PM
  5. Replies: 3
    Last Post: 05-03-2003, 12:04 PM

Tags for this Thread