|
by: blip |
last post by:
Is this acceptable ? It seems too easy and too simple...
#include<iostream>
#include<fstream>
#include<cstdlib>
#include<string>
struct Person{
char name ;
int age ;
|
by: TT (Tom Tempelaere) |
last post by:
Hi,
In my project I need to use VirtualAlloc (kernel32) to allocate memory to
ensure that data is 4K aligned. I need to fill the data block with file
contents. I notice that there are no 'Read' operations to memory pointed to
be an IntPtr (I checked FileStream & BinaryReader). Can I do this from
C#/.NET?
I'm currently mapping C-functions...
|
by: Gustaf Liljegren |
last post by:
This may be a question of taste, but if there is a best practice, I want
to know. I have two choises:
SomeClass s = new SomeClass(file); // Load the file
or
SomeClass s = new SomeClass();
s.Load(file); // Load the file
|
by: Gan Quan |
last post by:
I'm writing a c++ program that has many (100+) threads read/write files
simultaneously. It works well if not considering the efficiency. The
file i/o seems to be the bottleneck.
This is my code to read from and write to files:
#include <fstream>
#include <sstream>
#include <string>
|
by: TheMadMidget |
last post by:
I'm trying to use something like file_get_contents() but on a file that requires a username and password.
Thanks,
Jason
|
|
by: lab3terch |
last post by:
I am a student finishing a class in Visual Basic, and would like some assistance with a program I am working on. I need to read the contents of a file (showing makes of cars on one line and a daily rental fee on the following line) into an array and then display the file contents in a list box. The user then chooses the car he/she wants to rent. I...
|
by: =?Utf-8?B?SGFyaXNo?= |
last post by:
I am doing file operations using fopen(),
fwrite(), fclose() group of functions.
At times I need to clear the file contents while
the file is open.
Is there a function in the same group to do it?
(Or a workaround other than closing and
reopening the file in write mode?)
--Harish
|
by: nnamakaonwodi |
last post by:
I have a file that I want to read. The structure is given in C++
eg.
typedef HEADER_TAG
{
UCHAR index;
UCHAR crt;
}HEADER_TAG
|
by: aryanraj |
last post by:
Hi Everybody,
I want to design an html file viewer, for that i have got the code to browse the file, but i am not able to read the contents of the selected file, can anybody help to open the file and read it contents and display the content into the textarea.
Thanks in advance,
Aryan.
|
by: amollokhande1 |
last post by:
Hi,
I am trying to read the file contents using System.IO.File.ReadAllText
After reading the file contents the special charaters (á) gets replaced with some garbage characters like "?".
To elliminate this I have used encoding along with above method
System.IO.File.ReadAllText(strFile, System.Text.Encoding.ASCII)
But still it is not...
|
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...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
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...
|
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
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...
|