Thank-you all for your suggestions!
I have sorted out the issues in the program and the file read into
byte[] buffer = File.ReadAllBytes(currentDirectoryContents[j]);
was from a .exe file...
Type: Posts; User: suchthefool
Thank-you all for your suggestions!
I have sorted out the issues in the program and the file read into
byte[] buffer = File.ReadAllBytes(currentDirectoryContents[j]);
was from a .exe file...
I did read into StreamReader and a few other things. Reading .txt files is off the cards. Thank-you for all your replies!
I have spent the day re-writing and googling everything and anything,...
Hi guys,
I am currently trying to read the first 512 bytes of a series of files into array entries for future use. i.e.
files [file 1 contents]
files [file 2 contents] etc etc...
So far with...
Also, CommonTater
Is that similar to reading a defined block length? It's not important yet with the code but I think ideally if it could read a user defined block length that would be best.
...
Thank-you guys,
Let me wake up a bit and take a look at it :)
Ben
I cannot delete this thread from programmingforums.org. I posted it there earlier because I had forgotten I had the account here. Remembered cboard and came here with the problem, not intentionally...
Hi Guys,
Having an issue with using command line arguments and data manipulation.
The program I am trying to write allows user to specify input and output file at runtime e.g
./suchthefool...
I've been using Dave's guide for a lot of the work so far. I'll give what you suggested a go, but is a bit over my head. Will see how it goes :)
Cheers for the help so far!
++ As you can see I...
The code I have correctly allocated the shared memory and I can add data to it as a memory location which my other process can access and read from fine.
The problem I have is that I want the...
Hi all.
I am trying to create a program that will use a linked list as a queuing system where the linked list is stored in shared memory so that a second process can access it and delete elements...
http://cboard.cprogramming.com/c-programming/134427-kernighan-ritchie-confusion.html
I was just doing this exercise and needed it explaining, which someone did very well!
Thank you BoxKnife!
There is no point in the program at all I don't think. It's just a fairy complicated example to get you using bitwise shift.
I had omitted DisplayBits() from the posted code...
Before I prompt the user to input their own values of x, p, n and y I am sending set values I know the desired output for.
#include <stdio.h>
unsigned int SetBits(unsigned int x, int p, int...
Hi,
I am working my way through the Kernighan and Ritchie book alongside my university course. I have been comfortable with all exercises so far until this one. The K&R wiki has the code available...
That would be why :)
thank you.
the otherside of things is that, when given the assignment I was told that less lines of code than I have used would provide the same result. Have I gone about...
this is the task i was given as a uni project. - Code after explanation.
The aim of this exercise is to produce a simple simulation of a printer queue within a
UNIX or Linux environment.
The...