Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: can not delete a file Pin
David Crow30-Jul-07 3:32
David Crow30-Jul-07 3:32 
GeneralRe: can not delete a file Pin
George_George30-Jul-07 2:44
George_George30-Jul-07 2:44 
AnswerRe: can not delete a file Pin
George_George30-Jul-07 4:11
George_George30-Jul-07 4:11 
GeneralRe: can not delete a file Pin
David Crow30-Jul-07 3:49
David Crow30-Jul-07 3:49 
GeneralRe: can not delete a file Pin
George_George30-Jul-07 4:12
George_George30-Jul-07 4:12 
GeneralRe: can not delete a file Pin
David Crow30-Jul-07 4:46
David Crow30-Jul-07 4:46 
GeneralRe: can not delete a file Pin
George_George30-Jul-07 16:46
George_George30-Jul-07 16:46 
Questiongetline() Pin
garfaoui30-Jul-07 0:09
garfaoui30-Jul-07 0:09 
Hello,
I am using the command getline() to get the line of a text file.. But i think i have a problem with this command.
Here is how i used it in my programme:
getline(list,s1);
list is
fstream list;<br />
list.open("listfile.txt",ios::in);

and s1 is string s1;
The included libraries of my programme are :
#include <cstdlib><br />
#include <iostream><br />
using namespace std;<br />
#include<fstream><br />
#include<stdio.h>  <br />
#include <time.h><br />
#include <sstream><br />
#include<string>


I was wondering if getline() had a limit of character by line, and if it is so, how can i know its limit and change it.
Thank you
AnswerRe: getline() Pin
Nelek30-Jul-07 0:22
protectorNelek30-Jul-07 0:22 
GeneralRe: getline() Pin
garfaoui30-Jul-07 0:25
garfaoui30-Jul-07 0:25 
QuestionRe: getline() Pin
David Crow30-Jul-07 3:34
David Crow30-Jul-07 3:34 
AnswerRe: getline() Pin
garfaoui30-Jul-07 3:39
garfaoui30-Jul-07 3:39 
GeneralRe: getline() Pin
David Crow30-Jul-07 3:47
David Crow30-Jul-07 3:47 
GeneralRe: getline() Pin
garfaoui30-Jul-07 4:02
garfaoui30-Jul-07 4:02 
GeneralRe: getline() Pin
David Crow30-Jul-07 4:45
David Crow30-Jul-07 4:45 
GeneralRe: getline() Pin
garfaoui30-Jul-07 4:56
garfaoui30-Jul-07 4:56 
GeneralRe: getline() Pin
David Crow30-Jul-07 5:18
David Crow30-Jul-07 5:18 
GeneralRe: getline() Pin
garfaoui30-Jul-07 5:25
garfaoui30-Jul-07 5:25 
Questioninternal working of Message Map in MFC ? Pin
prashant pissey29-Jul-07 23:44
prashant pissey29-Jul-07 23:44 
AnswerRe: internal working of Message Map in MFC ? Pin
Randor 30-Jul-07 1:06
professional Randor 30-Jul-07 1:06 
AnswerRe: internal working of Message Map in MFC ? Pin
SandipG 30-Jul-07 1:19
SandipG 30-Jul-07 1:19 
GeneralRe: internal working of Message Map in MFC ? Pin
prashant pissey30-Jul-07 2:03
prashant pissey30-Jul-07 2:03 
AnswerRe: internal working of Message Map in MFC ? Pin
Mark Salsbery30-Jul-07 6:26
Mark Salsbery30-Jul-07 6:26 
QuestionCreate a print function Pin
Linus D29-Jul-07 22:24
Linus D29-Jul-07 22:24 
AnswerRe: Create a print function Pin
CPallini29-Jul-07 22:41
mveCPallini29-Jul-07 22:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.