by: pentiumPunk |
last post by:
string fileName;
cout<<"Enter filename of datafile you wish to open \n";
cin>>fileName;
ifstream fin;
fin.open(fileName, ifstream::ios);
if(!fin)
{
|
by: nadz |
last post by:
just looking at this main
int main()
{
ifstream fin("text.txt");
doStuff(fin); //processes the data from text.txt
fin.close();
fin.open("text2.txt");
doStuff(fin); //processes the data from...
|
by: Anton Ishmurzin |
last post by:
Greetings All,
I think everybodyknows the answer already. But i
am quite a newbie in c++.
I've got the following line in my code:
ifstream ini_file_in("filename.dat", ios::in);
But, the...
|
by: Ram Laxman |
last post by:
Iam new bie to C++ programming..
I want to write a program which will read the Comma separated
values(CSV) file column wise.
For example:
In a.txt:
"TicketNumber","Phone","CarNumber"...
|
by: Mike Alexeev |
last post by:
Hi all,
I have come across very strange behavior of the return value of the
time() function. Below is the program to illustrate the problem: The
value of NOW somehow changes after the call to the...
|
by: jared.oconnell |
last post by:
Howdy,
I am having a weird problem with ifstream.
ifstream img;
img.open(im_fn.c_str(),ios::in|ios::binary);
char *x = new char;
if(!img) {
cerr << "Error: problem reading img" << endl;...
|
by: merrittr |
last post by:
I have a small program to read data from some data files , in it I use
string types to build the data file name but when I try to compile it I
get: (see code below error)
...
|
by: SantaClaus |
last post by:
Hi all,
Im getting an exception in the middle of reading a file and here is my code std::ifstream inf;
const int bufSize=1024;
char tbuffer;
std::string filex = path; // may be C:\test.txt
const...
|
by: waynejr25 |
last post by:
can anyone debug my program and get it to run.
#include <fstream>
#include <iostream>
#include <string>
#include <cstdlib>
#include <map>
using namespace std;
|
by: aemado |
last post by:
I haven't written basic array code in so long, I have forgotten how to do some of it. I have two data files. There is some data that is common to both, and some that is only in the first and not the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|