Thread: anyone familiar with ubuntu?

  1. #1
    Registered User
    Join Date
    Oct 2008

    anyone familiar with ubuntu?

    i was programming a c file,

    messing with fopen w

    now the whole folder that contains all my c files, and the file I wrote to with the program, will not open.

    any clues?

  2. #2
    Registered User carrotcake1029's Avatar
    Join Date
    Apr 2008
    Can you navigate your way there through the command line via commands like "cd" and "ls" ?

  3. #3
    Complete Beginner
    Join Date
    Feb 2009
    You can't use fopen() with directories, so I guess it's just a problem with permissions.

    Who is the owner of the directory? What are the permissions of the directory?

    If you're having trouble getting access to the directory, manually set owner and group to yourself and change permissions so you're able to change to the directory:

    sudo chown <your_username>:<your_group> <dir>
    sudo chmod 700 <dir>
    All things begin as source code.
    Source code begins with an empty file.
    -- Tao Te Chip

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. strange ubuntu problem
    By Stonehambey in forum Tech Board
    Replies: 4
    Last Post: 04-21-2009, 11:03 AM
  2. Removing Ubuntu and getting its space back
    By Akkernight in forum Tech Board
    Replies: 11
    Last Post: 04-04-2009, 03:02 AM
  3. I dont know if your familiar with circlemud but..
    By errigour in forum C Programming
    Replies: 0
    Last Post: 03-25-2009, 05:27 AM
  4. 32 bit to 64 bit Ubuntu
    By Akkernight in forum Tech Board
    Replies: 15
    Last Post: 11-17-2008, 03:14 AM
  5. Ubuntu fan noise
    By Stonehambey in forum Tech Board
    Replies: 10
    Last Post: 09-06-2008, 12:28 PM