|
by: Armando |
last post by:
Hallo !
I habe some error in my programm,because i use <fstream.h>,I want to
use <fstream> but i don´t know which fonctions i must modify in my
program ?
Thanks you for your help.
Armando.
|
by: David Blasdell |
last post by:
This appears very strange to me, I'm having a problem with a fstream object
inside a class which is not being called directly from main (another class
calls the class that contains the fstream object).
Use the following code (stripped down from what I'm actually working on, but
does has the problem I'm experiencing)
Create a file called test.txt in the working directory with a few bytes of
any text or data
Can you explain to me why...
|
by: Someonekicked |
last post by:
I have a binary file, and I need to delete a specific number of characters
in it.
The file contains records, each record has a specific length.
So the way I wanna handle deleting is that I will overwrite the record I
want to delete with the last record in the file, then actually delete that
last record in the file. the problem Im having is how to delete that last
record in the file.
Suppose each record is of length 43, then I have...
|
by: Ramsey |
last post by:
I have a unmanaged lib file that creates an fstream object.
This lib file is used by a managed dll.
Unfortunately when I run the code it crashes when I create the fstream
object.
I have a hunch that it is a simple problem of configuring my project
file. But the only file I have linked is msvcrtd.lib.
|
by: ma740988 |
last post by:
Trying to some of my reading on file manipulation
(ifstream/ofstream/fstream) into action. So now consider.
# include <iostream>
# include <fstream>
# include <cstring>
# include <sstream>
bool remove_and_create_if_exists(
const std::string& filename
|
|
by: wiso |
last post by:
My problem is this (from:
http://www.cplusplus.com/ref/iostream/fstream/open.html)
#include <fstream>
using namespace std;
int main()
{
fstream f;
|
by: emaghero |
last post by:
Greetings and Salutations,
I have started using the fstream class in C++ to create text files for input and output. Whenever I try to instantiate an fstream object using the following code
fstream data("c:\\sine.txt",ios_base::in|ios_base::out);
if(!data){
cerr<<"Failed to open data\n";
}
data.close();
|
by: Gaijinco |
last post by:
Should this do something?
#include <fstream>
#include <string>
int main()
{
std::fstream filestr ("test.txt", std::fstream::in |
std::fstream::out);
std::string s="";
|
by: canilao |
last post by:
Hi All,
So I ran into an issue with using the ! operator with fstream:
// Make sure the file is ready to be read before we move on.
1: fstream fileStream;
2: fileStream.open("c:\\some_file.txt");
// Try to open until success.
3: while(!fileStream) fileStream.open("c:\\some_file.txt");
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|