Thread: What's wrong with my code here???

  1. #16
    Registered User
    Join Date
    Nov 2006
    Posts
    17
    Ok, I get the point. I'll indent more.

    Now, where's that last ll fail CS306 coming from???

  2. #17
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    >Now, where's that last ll fail CS306 coming from???
    Probably because you're opening the output file in read/write mode versus write mode:
    >out = open(outFILE, O_RDWR|O_CREAT, S_IRUSR|S_IRGRP|S_IROTH|S_IWUSR); //Uses system

    Opening it in write mode should truncate the file first.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. what is wrong in this simple code
    By vikingcarioca in forum C Programming
    Replies: 4
    Last Post: 04-23-2009, 07:10 AM
  2. what is wrong with this code please
    By korbitz in forum Windows Programming
    Replies: 3
    Last Post: 03-05-2004, 10:11 AM
  3. I cant find what is wrong with this code
    By senegene in forum C Programming
    Replies: 1
    Last Post: 11-12-2002, 06:32 PM
  4. Anyone see what is wrong with this code?
    By Wise1 in forum C Programming
    Replies: 2
    Last Post: 02-13-2002, 02:01 PM
  5. very simple code, please check to see whats wrong
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 10-10-2001, 12:51 AM