Recent content by nicolegrace
-
N
Reading characters from file till white space and appending symbols
@ MisterX do you mean like this ? but I have error , saying you cannot change form char to char.- nicolegrace
- Post #6
- Forum: Programming and Computer Science
-
N
Reading characters from file till white space and appending symbols
I want to finally get a array with elements stored at each position/index like p[0] = c p[1]=a ... but if i just copy stirngs it stores complete string in the index position. can you suggest me what I should do in this case- nicolegrace
- Post #5
- Forum: Programming and Computer Science
-
N
Reading characters from file till white space and appending symbols
well I just figured out that I can do this using >> operator and using string stream but i have errors in that . can someone help me #include <iostream> #include <string> #include <stdio.h> #include <fstream> using namespace std; int main (int argc, char **argv) {...- nicolegrace
- Post #3
- Forum: Programming and Computer Science
-
N
Reading characters from file till white space and appending symbols
Hi I am novice to programming and trying to read each character from file till white space [next line / space] and append symbols to the read characters. example: say I have string how are you doing sir then I should read it into char buffer as char buff =...- nicolegrace
- Thread
- File Reading Space Symbols
- Replies: 10
- Forum: Programming and Computer Science
-
N
C/C++ Reading a string from file until whitespace c++
I am newbie to programming , I am trying to write a program in c++ to read strings from the file until white space [ space/ newline] each time i encounter white space i append to the string read append a symbol "$" and push to the buffer. and for the same string append another symbol "(" and...- nicolegrace
- Thread
- C++ File Reading String
- Replies: 1
- Forum: Programming and Computer Science