[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Buckys C++ Programming Tutorials – 67 – Reading Custom File Structures
by
Tags:
Comments
35 responses to “Buckys C++ Programming Tutorials – 67 – Reading Custom File Structures”
-
in my program the compiler read only first line why ??
#include <iostream>
#include <conio.h>
#include <fstream>
using namespace std;void main()
{
ifstream csfile("player.txt");int id;
char name[50];
float money;while (csfile >> id >> name >> money)
{
cout << id << name << money << endl;
}
getch();
} -
I have problem when display the data. Someone can you help me? I need help. When display the data , the data display twice .
-
When I run my program, it only shows the last line. It's skipping the first few lines. Anyone knows why??Please!
-
Thank You so much <3
-
thanks a lot. it was very helpful for me and I got my answer which I couldn't find the solution. I really appreciate it.
-
hey, everyone!!! so in line 13, the values are stored?
so if I want to call the information to find the average of the bank account numbers I can use "double money" <- because the values are stored in it already right?
can someone help me, please!!!
I hope you understand -
why is it that when i run my program nothing is appearing other than the press any key to continue button. I am doing everything like you and it still is not working almost like it can't locate the file or something.
-
Bucky ! can we use ofstream and ifstream in same program
-
How to make sounds on Mac using Beep ( )
-
Thank You Very Very much
You made me learn file handling very easily -
Could you use this to write a list of infix equations, then read it into an infix to post-fix conversion algorithm?
-
You really do a damn god job at your tutorials!
-
Why does nothing appear when I run the program?
-
What if one field has null value? How to ignore that and read next value in correct variable?
Index Name Point Value
1 Sam 0.2
2 0.9
Ron B. 0.4
4 Soy
How to read the 3 colums correctly into respective variable? And what if one field has space? -
for(var b=0,c=0;b<this.C.length&&c<a.length;b++)
-
it only reads the last line for me
-
how do you do the same when the text file contains commas (,) instead of space characters ( ) ??
-
СПАСИБО!!!!!! Thenks!!!!!!!!Very very very ver very^1000000
-
Why does mine doesn't show anything if I run it?
-
bucky you're so gorgeous.
-
Ok so I want to let the user determine the name of the document being saved. if this is in the next few tutorials let me know and I will just keep going.
-
Buckys C++ anal tutorial – 69 – Considering Suicide Because I'm A Faggot
-
For some reason, I am unable to get my program to go through the while. I replaced the cout with a simple phrase and it displayed nothing so I know its the while portion. My code is as follows:
// pliss hulp.cpp
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;int main()
{
ifstream theFile("vs.txt");int one;
string name;
double amount;while (theFile >> one >> name >> amount)
{
cout << one << ", " << name << ", " << amount << endl;
}
return 0;
} -
what the fuck is this >8( how the hell can you put a object a int a string and a double in a while loop; what is going on, are me just putting a object in the loop that dose magic and takes some args return true or false depicting if there is any thing left in the file to read.someone pls explain wizardly-nest
-
Cool tutorial, ty
-
one word to describe you.
AWESOME 🙂 -
I think you might wanna add fstream on the title of this video. 🙂 great tutorial, thanks bucky
-
<string> in the header ??
-
how would you just read I'd 3's info?
-
thanks bucky
-
Subbed for this! Lifesaver!!!
-
This was super helpful <3 Thank you. I am currently creating a graph for my data course. Was having trouble reading the locations and weights from provided text file. Thank you!
-
thank you!
-
I have to say it, my friend you are the best. Thank you SO much
-
andhera kayam rahe !!!
Leave a Reply