That did it... I dunno what i was thinking.. thanks a lot to everybody...
Type: Posts; User: vishalbhingarka
That did it... I dunno what i was thinking.. thanks a lot to everybody...
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
I am using VC++6. Changed the string file as per the suggestion but the input stream just does not move after the first line.
Should i get the input character by character...will that help??
The getline function is not moving to the next line automatically. logically if am not opening the file in append mode then the last line should have been printed but only the first line is getting...
ofstream file1 ("passwd_sorted.txt");
if (file1.is_open())
{
file1 << "dn:cn=";
file1 << cn;
file1 << "cn:";
file1 << cn;
file1 << "\nsn:";
file1 << sn;
file1 <<...
I am trying the code with getline in the while loop. when I print the line in the putput, all I am getting is the first line. I am not sure how do i make the getline move to the next line.
Thanks a lot for that. I am not yet sure why my whole file is not being read it in line by line. Like in my output all I am getting is the output for the first line.
I was trying different methods and hence it is commented.
I am trying to find a white space.
I have written a code for getting inputs from a file. I need to parse the input string and then putput it to another file. The input file contains multiple lines. I am not sure what I am doing wrong....
thanks a lot...Got it...
I am recieving some data in UTF8 format and have to pas it to another function in const unsigned short format. any ideas??
hey dudes
thanks a lot but finally got a library for calling LDAP implicitely.... see MSDN for more details...
I am sorry but can you please elaborate. I do not want to run another program but a utility through the system call...any help appreciated...
Thanks
I am writing a code in C++ for exploring and correlating LDAP.The point is I have been using system() command to search and bind LDAP . But the system command always invokes a command line interface...