December 19th, 2012 10:59 AM
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
February 14th, 2012 04:37 PM
Cheers, that did the trick :)
Thanks everyone who gave other suggestions. I would have looked into the database thing if I had more time :) ..
February 14th, 2012 06:57 AM
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?
February 14th, 2012 06:26 AM
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;
February 14th, 2012 06:09 AM
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: ...
February 14th, 2012 04:52 AM
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...
November 4th, 2011 04:43 AM
Where can I find more examples using the fstream and familiarize myself with it?
thanks
November 4th, 2011 04:08 AM
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();
November 3rd, 2011 03:27 PM
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
November 3rd, 2011 02:22 PM
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