Search:

Type: Posts; User: suchthefool

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    3,702

    Thank-you all for your suggestions! I have...

    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...
  2. Replies
    7
    Views
    3,702

    I did read into StreamReader and a few other...

    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,...
  3. Replies
    7
    Views
    3,702

    C# beginner FileStream help please

    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...
  4. Also, CommonTater Is that similar to reading a...

    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.
    ...
  5. Thank-you guys, Let me wake up a bit and take...

    Thank-you guys,

    Let me wake up a bit and take a look at it :)

    Ben
  6. I cannot delete this thread from...

    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...
  7. copying contents of text file defined at runtime into an array

    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...
  8. Replies
    4
    Views
    5,485

    I've been using Dave's guide for a lot of the...

    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...
  9. Replies
    4
    Views
    5,485

    The code I have correctly allocated the shared...

    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...
  10. Replies
    4
    Views
    5,485

    Hi all. I am trying to create a program that...

    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...
  11. Thread: setbits

    by suchthefool
    Replies
    11
    Views
    5,736

    Nice explanation of this on my recent post

    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!
  12. Replies
    3
    Views
    4,063

    Thank you BoxKnife! There is no point in the...

    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...
  13. Replies
    3
    Views
    4,063

    The example I am working with

    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...
  14. Replies
    3
    Views
    4,063

    Kernighan and Ritchie confusion

    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...
  15. Replies
    3
    Views
    2,657

    That would be why :) thank you. the otherside...

    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...
  16. Replies
    3
    Views
    2,657

    Tidying up Code and Compile Problems

    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...
Results 1 to 16 of 16