2
votes
Accepted
Directory structures
Do not type the prefix "~/ $ ", just start with mkdir. For example, here you can see the wrong way, followed by the right way to do this:
1
vote
How do I delete files?
To delete, navigate to the parent folder (aka directory) of what you want to delete in the command line (cd [folder name] to go down a level, cd .. to go up a level), then enter rm [filename], ...
1
vote
Accepted
MY code works with a hardcoded string, but not a string object
This sequence = sequence_o.read doesn't execute the read function. It declares sequence as (basically) a copy of the read function. When a function does not take arguments (as with read), one must use ...
1
vote
Accepted
What does a pointer to a file really represent?
A FILE pointer is a pointer to a struct. That struct contains numerous elements. (You'll learn about structs later, if you haven't already.) This particular struct is defined in stdio.h as follows:
...
1
vote
Accepted
Code not working when saved inside bigger files
In a for loop we have three well differentiated parts, the initialization, the end of cycle condition and the counter that changes the variable in each pass of the cycle, these three parts are ...
1
vote
Files Won't Open In The Directory
Remember that you need to make a new file to write the images two. It looks like you successfully open card.raw, but all you do is name it in your for loop. You probably want to first read from your ...
1
vote
Accepted
[PSET4][Recover] Why does FILE* img work but not FILE *img?
FILE* img and FILE *img are the same, you must have been observing some other effect.
While I like grouping the * with the type, as the type of img is FILE*, there's also the argument that you might ...
1
vote
How Do I Create A File
In the appliance, you could right-click the pset1 folder and select "New File", or you could change into the pset1 folder in your console, and write touch hello.c, touch by default sets the last-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
file × 23recover × 4
pset4 × 3
file-pointer × 3
pset2 × 2
pset1 × 2
pointers × 2
crack × 2
week4 × 2
pset3 × 1
pset5 × 1
pset6 × 1
c × 1
mario × 1
appliance × 1
error × 1
check × 1
dictionary × 1
dna × 1
fails-check50-but-works × 1
linked-list × 1
command-line-arguments × 1
lesscomfortable × 1
update × 1
fopen × 1