Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
fstream
- Page 1
Re: fstream
Programming
Software Development
16 Years Ago
by RayvenHawk
… in, out, and app parameters... [CODE]
fstream
openfile; openfile("my_file.txt",
fstream
::in |
fstream
::out |
fstream
::app); if(openfile.fail()) { cout<… the compiler that it should check the following:
fstream
::in (or)
fstream
::out (or)
fstream
::app??? if so you are short 1 | for…
fstream
Programming
Software Development
16 Years Ago
by dmanw100
I'm having trouble getting
fstream
to function properly. I cannot …functions correctly if I compile it as follows: [CODE]
fstream
openfile; openfile("my_file.txt"); if(openfile.fail…, and app parameters... [CODE]
fstream
openfile; openfile("my_file.txt",
fstream
::in |
fstream
::out |
fstream
::app); if(openfile.fail()) {…
Re: fstream
Programming
Software Development
16 Years Ago
by Agni
[CODE]
fstream
openfile; openfile("my_file.txt"); if(openfile.fail()) { cout&… if you say [code]openfile.open("my_file.txt",
fstream
::in|
fstream
::out|
fstream
::app);[/code]
Re: fstream
Programming
Software Development
16 Years Ago
by l4z3r
…> #include<
fstream
.h> int main() { char ch;
fstream
fio; fio.open("my_file.txt",
fstream
::out |
fstream
::app); if(fio…
fstream
Programming
Software Development
12 Years Ago
by slygoth
… having a little trouble with this code [CODE]# include <
fstream
> # include <iostream> # include <string> using… namespace std; int main() {
fstream
filestr; filestr.open("text.txt",
fstream
::in |
fstream
::out |
fstream
::app); filestr.close(); return 0; }[/CODE…
Re: fstream
Programming
Software Development
16 Years Ago
by Ancient Dragon
… the compiler that it should check the following:
fstream
::in (or)
fstream
::out (or)
fstream
::app??? if so you are short 1 | for…
fstream help
Programming
Software Development
12 Years Ago
by wildplace
…; in.open ("myFile.dat",
fstream
::in |
fstream
::out |
fstream
::app); char* temp = new char [40]; string aString; in.write(&…
Re: fstream
Programming
Software Development
16 Years Ago
by dmanw100
That single "|" is the way you pass parameters to file_stream.open() according to my reference. The filename must be in qoutes followed by a comma and then the parameters are
fstream
::parameter seperated by a single |. Two || are a logical or, not the seperator needed here from what I understand.
Re: fstream
Programming
Software Development
16 Years Ago
by Ancient Dragon
[QUOTE=vmanes;678883]I've always seen the modes used as [inlinecode]ios::in | ios::out | ios::app[/inlinecode][/QUOTE] So have I, but see the example [URL="http://www.cplusplus.com/reference/iostream/
fstream
/open.html"]here[/URL]
Re: fstream
Programming
Software Development
16 Years Ago
by Ancient Dragon
I always have problems using
fstream
too. So I try to avoid it and use ifstream or ofstream instead.
Fstream help
Programming
Software Development
12 Years Ago
by imgregduh
… and a header.h im using [CODE]#include<
fstream
>[/CODE] in the main.cpp and in the functions…quot; between the 3 files main.cpp [CODE]#include <
fstream
> #include "cs.h" using namespace std;…("pause"); }[/CODE] functions.cpp [CODE]#include <
fstream
> #include "cs.h" using namespace std; int…
Re: fstream help
Programming
Software Development
12 Years Ago
by Ancient Dragon
After you write the string you have to rewrind the file pointer before you can read it again. See
fstream
's seekp() function and set the file pointer back to the beginning of the file.
Fstream
Programming
Software Development
18 Years Ago
by NosKills
I have somewhat of a weird problem which probably is caused by my compiler, but when I include <
fstream
> some of it's members cannot be found back in the std namespace. When i use <
fstream
.h> these methods are availabe. The methods are ios::nocreate and ios::noreplace, anyone who has had the same problem. (I'm using MSVC++)
fstream help
Programming
Software Development
18 Years Ago
by mikki2
… is the code... [code] #include<iostream> #include<
fstream
> using namespace std; int main() { string word; ofstream outl…
Re: Fstream help
Programming
Software Development
12 Years Ago
by Labdabeta
You have to realize that ofstream is a class so you need to use [ICODE]void reader1(ofstream outf);[/ICODE] Also I think that
fstream
tries to protect your programs from clashing like you describe. If you want a stripped down access to a file with no C++ failsafes I suggest a small interrupt in assembly language.
Re: fstream help
Programming
Software Development
18 Years Ago
by WolfPack
… fout? Are you sure that you are not confusing two
fstream
variables?
Re: fstream help
Programming
Software Development
18 Years Ago
by mikki2
… fout? Are you sure that you are not confusing two
fstream
variables?[/quote] hi i figure it out thanks!
fstream
Programming
Software Development
18 Years Ago
by darkstar80
… lname, float amount) { const char NUM=30; char buffer[NUM];
fstream
in("records.txt"); /*this is my a little…
Fstream Help
Programming
Software Development
16 Years Ago
by cam875
Ok, a few questions on
fstream
with C++ and winsock 1. Is it possible to search …
Re: Fstream Help
Programming
Software Development
16 Years Ago
by cam875
can something like this be read in
fstream
though and so if players item id is 1 it …
Re: Fstream Help
Programming
Software Development
16 Years Ago
by cam875
… kind of explanation. [ICODE]#include <iostream> #include <
fstream
> using namespace std; int main() { ifstream file; file.open…
Re: Fstream Help
Programming
Software Development
16 Years Ago
by cam875
… im comparing integers. [ICODE]#include <iostream> #include <
fstream
> using namespace std; int main() { string ItemName; int ItemID…
Re: Fstream Help
Programming
Software Development
16 Years Ago
by cam875
[ICODE]#include <iostream> #include <
fstream
> #include <string> using namespace std; int main() { …
Re: Fstream Help
Programming
Software Development
16 Years Ago
by cam875
… it should. [CODE=cplusplus]#include <iostream> #include <
fstream
> #include <string> using namespace std; int main…
Re: Fstream Help
Programming
Software Development
16 Years Ago
by Ancient Dragon
…] #include <iostream> #include <string> #include <
fstream
> #include <sstream> using namespace std; int main…
fstream help
Programming
Software Development
14 Years Ago
by Rickay
why doesn't this work? [CODE]int main() {
fstream
file; char output[100], pasword[100]; int a; const string …
Fstream Help
Programming
Software Development
13 Years Ago
by Phinisher
… and does not return the correct result. [CODE] #include <
fstream
> #include <iostream> using namespace std; int char_count…
Fstream
Programming
Software Development
10 Years Ago
by chubbyy.putto
… didnt print the number. #include <iostream> #include <
fstream
> using namespace std; const int mySize = 15; const int…
Re: Fstream
Programming
Software Development
10 Years Ago
by chubbyy.putto
… run forever? thank you #include <iostream> #include <
fstream
> using namespace std; const int mySize = 15; const int…
fstream Tutorial
Programming
Software Development
20 Years Ago
by FireNet
… use notepad. The binary files are smaller in size. **
Fstream
.h**
fstream
.h provides simultaneous input and output through ifstream, ofstream and… can be done mathematically. ** ------------------------- PART II -------------------------** **Random File Access** With
fstream
we work with 2 file pointers, read and write. By…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC