Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: trojsi

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    332

    Book for command-line application

    Are there any books about C sharp that only considers command-line applications?
    I am new to OOP and I only want to learn the concepts to do some command-line
    app for my school assignment. thanks
  2. Re: null terminating character removed

    Cheers, that did the trick :)

    Thanks everyone who gave other suggestions. I would have looked into the database thing if I had more time :) ..
  3. Re: null terminating character removed

    Do you think my method is correct and suitable for what I want to do, or do you suggest another technique to update profiles in a binary file please?
  4. Re: null terminating character removed

    This is update part in the main:


    int main() {

    fstream fread; // read and write streams

    fread.open(pszFileName, ios_base::in | ios_base::out | ios_base::binary);

    string buff;
  5. Re: null terminating character removed

    Okay, this is a hangman game and at the end of each game I want to update the last word guessed not to be chosen next time the user plays in his profile selected.

    I am declaring a global struct: ...
  6. [RESOLVED] null terminating character removed

    Hi,
    I am reading a binary file to string to update it and write it back again. When I add (append) user profiles in the binary file and read it again, every thing is oki because a null...
  7. Replies
    7
    Views
    834

    Re: Get specific line from text file

    Where can I find more examples using the fstream and familiarize myself with it?

    thanks
  8. Replies
    7
    Views
    834

    Re: Get specific line from text file

    This is what I used to read a specific line. :

    ifstream f("input.txt");
    string s;
    getline(f, s);
    getline(f, s);
    getline(f, s); //here is 3rd line

    f.close();
  9. Replies
    7
    Views
    834

    Re: Get specific line from text file

    thanks I figured that one out, how about writing a word to the line you want.

    Is it possible to post an example please?

    thanks
  10. Replies
    7
    Views
    834

    Get specific line from text file

    I am trying to get a specific line in a text file which only has one word per line and copy it to a string. Can anyone give a simple example?

    thanks
Results 1 to 10 of 10


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center