how do i skip a char in filestream?
i tried the ignore function but that doesnt work in filestream, i also tried using an array[i] and said if(arr[i]=="-")
then i++ while outputting but that doesnt work either
newnew1234 15 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
newnew1234 commented: #include <iostream> #include <fstream> #include <string> using namespace std; void read (ifstream & in, ofstream & out) { int a[20]; string temp; +0
newnew1234 15 Newbie Poster
newnew1234 15 Newbie Poster
rproffitt commented: Did you notice the code doesn't out.close()? +15
rproffitt 2,662 "Nothing to see here." Moderator
newnew1234 15 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.