Delete.
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
(02-04-2019 - 12:42 AM)IcyJake Wrote: I have no idea what you're attempting to ask. Just tell me exactly what you want done and I can help you.
Hi
Guys
:)
#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
SetConsoleTitleA("Read a text file line-by-line");
string theLines; // Read line
ifstream yourFile("yourFile.txt");
if (yourFile.is_open())
{
while (yourFile.good())
{
getline(yourFile, theLines);
cout << theLines << endl;
}
yourFile.close();
}
else
{
cout << "An error occured while trying to open the file!";
}
cout << "" << endl; // Not important (just for organization in the console)
system("pause"); // Keeps the console open
return 0;
}
(02-04-2019 - 02:21 AM)IcyJake Wrote:
You mean like that? If that's what you want, then here:
Code:#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
SetConsoleTitleA("Read a text file line-by-line");
string theLines; // Read line
ifstream yourFile("yourFile.txt");
if (yourFile.is_open())
{
while (yourFile.good())
{
getline(yourFile, theLines);
cout << theLines << endl;
}
yourFile.close();
}
else
{
cout << "An error occured while trying to open the file!";
}
cout << "" << endl; // Not important (just for organization in the console)
system("pause"); // Keeps the console open
return 0;
}
(02-04-2019 - 10:22 AM)NoNameV2345 Wrote:Too Many Quotes (Click to View)
yeah, but i need for c...
(02-04-2019 - 10:41 PM)IcyJake Wrote:Too Many Quotes (Click to View)
I mean, can't you convert that to C by yourself? If you can't then I'll help you, but you should be able to.
(02-05-2019 - 12:16 AM)NoNameV2345 Wrote:Too Many Quotes (Click to View)
Im tried, but I can't convert it. : /
(02-05-2019 - 01:03 AM)IcyJake Wrote:Too Many Quotes (Click to View)
Do you have Discord or something? I'm asking because I wanna try to actually help you instead of pretty much just spoonfeeding you, lol.