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: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
|