Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
input-file
- Page 1
Re: Java Coin Flip Program
Programming
Software Development
37 Minutes Ago
by jassonadder
…idea—it’s a great beginner project to practice loops,
input
, and class methods in Python. Here’s a sample program…;Total Tails:", self.tails) # Main program try: flips = int(
input
("How many times would you like to flip the…end. Let me know if you want a version with
file
output or a GUI later on—happy to help!
Re: Cannot run exe from asp.net
Programming
Web Development
1 Week Ago
by lennyli
…Replace with the server's IP address while True: command =
input
("Enter command (move, click, type, exit): ")…;python client.py Traceback (most recent call last):
File
"C:\Users\maxwi\client.py", line …18, in <module> main() ~~~~^^
File
"C:\Users\maxwi\client.py", line 6,…
Re: Question/Answering over SQL Data Using LangGraph Framework
Programming
Computer Science
3 Weeks Ago
by Pelorus_1
Through its combination of natural language processing and structured query generation, LangGraph makes interfacing with databases and extracting insights over SQL data easier than ever.
input file
Programming
Software Development
17 Years Ago
by gee1288
…guys i need some help with this
input
file
program im getting
input
file
invalid all the time i have no…int counter=0; cout<<"Please enter
input
file
name: "; cin>>inputFileName; cout&…;); if (in_stream.fail()) { cout << "
Input
file
opening failed.\n"; exit(1); } ofstream out_stream("…
Input file parsing
Programming
Software Development
12 Years Ago
by TheWolverine
…these parameters. Within the application, I read in the
input
file
, strip and trim all unncessary stuff, like comment lines,… I can search through to match parameters from the
input
file
, and then set the values given in the struct…in the direction of any literature online that tackles
input
file
parsing of parameter/value pairs. Thanks in advance …
Input File Issue! Help!
Programming
Software Development
13 Years Ago
by pattilupwned
…. In the program, I have to use an
input
file
that includes the name of a college, where the…, it gives a different name off the
input
file
until it reaches the very last name on the…ie "Youngstown State University" based on the
input
data
file
provided below: [code] AntiochCollege YellowSprings 330 27800 ArtAcademyofCincinnati…
input file stream problem
Programming
Software Development
16 Years Ago
by chunalt787
…Search Tree and the data has to be
input
from a .txt
file
where in the data is held as …(fileName.c_str()); if (istream.is_open()) { cout << "
File
was successfully opened" << endl; } else { cout …pt); return 0; }[/CODE] I have also zipped the
input
file
and the 4 code files in case anyone is interested…
Input file/array help
Programming
Software Development
15 Years Ago
by ELBUF
…readPlayers will read the number of players from the
input
file
and assign that through the num_playersp pointer. Then allocate… pointer. Finally read in the heights from the
file
into the array allocated. I am having trouble … too skilled with dynamically allocated arrays and reading in
input
files. Does anyone have any suggestions? Comments? Help…
from input file to array
Programming
Software Development
17 Years Ago
by andyg55
input
file
: 1 0 0 2 1 0 0 2 1 I …"); if (!inFile) { printf ("Unable to open
input
file
"); exit(1); } for (i=0; i < 3; i++){ …
Input file and calculations
Programming
Software Development
14 Years Ago
by ronthedon
I have a program where I have to put an
input
file
in. Can someone tell me which direction to go in to where i can have my program calculate the data from the
input
file
?
Input File to Output File
Programming
Software Development
16 Years Ago
by ejiroy
… names that are in my .txt
file
into an output
file
that the user specifies. My program…cout << "Enter the name of the
input
file
:"; string inputname; getline(cin, inputname); ifstream fin; …(); cout << "Enter name of output
file
:"; string outputname; getline(cin, outputname); ofstream fout(outputname…
Re: Input File to Output File
Programming
Software Development
16 Years Ago
by siddhant3s
…=cpp]cout << "Enter the name of the
input
file
:"; string inputname; getline(cin, inputname); ifstream fin; fin.open…
Re: input file
Programming
Software Development
17 Years Ago
by Ancient Dragon
…. You previously asked for the
input
filename but hardcoded it at line 32. Also check the
file
system to see that its… specify the full path on line 32. Finally, if the
file
name contains spaces, such as [b]Program Files[/b] then…
Re: Input file stream -- endless loop
Programming
Software Development
15 Years Ago
by PolarPear
… your help. From the computer science books I have, the
input
file
part of my code should be exactly right. I have… see if that would work, and it works fine. My
input
file
on the other hand, even if I write the name… of the
file
into my code instead of having it be user entered…
Re: Input file to project
Programming
Software Development
15 Years Ago
by Fbody
[QUOTE=sfurlow;1038231] <...snip...> How do I go about doing this? I created a text
file
with the example information in it, but how do I import this into the project?[/QUOTE] Use an
input
file
stream ([icode]ifstream myFile(MASTER_FILE_NAME);[/icode]) to read the information into your program and process it accordingly.
student data from input file
Programming
Software Development
12 Years Ago
by jameswj83
…sample run below). Read the student data from the
input
file
and store it using an array of appropriate type…list dynamically, since the size is stored in the
input
file
. (Note that this also means each list item … included in this summary report.
File
formats
Input
File
-- The first line of the
input
file
will contain the number of students…
Using PHP GET to specify default value for input=file within HTML form
Programming
Web Development
15 Years Ago
by theories
…as default values so I could specify the
file
name for the
input
=
file
type. All values specified are displayed within …the
input
boxes except the
file
names I specify for those boxes of type=
file
…_GET works for everything but the type=
file
. The box for the
input
is left blank when I go to …
Lines are being skipped in the input file.
Programming
Software Development
20 Years Ago
by echelon
…you know what is wrong. Here is the
input
file
info [CODE] Field Positions Type Decimals Fullname… 'Specify the positions and lengths of data in the
input
file
. CONST FullNamePos = 1 CONST FullNameLen = 20 CONST … END SUB [/CODE] I will attach the
input
file
given to me by the instructor. The filename…
Re: New to C++, problems with input file
Programming
Software Development
16 Years Ago
by VernonDozier
… I have a function that opens an
input
file
. It asks you to
input
a
file
and if it can’t open the… { cout << "Please type the name of your
input
file
: "; cin >> FileName; cout << endl;… if(!inFile) { cout << "Can't open
input
file
" << endl << "Would you …
Re: New to C++, problems with input file
Programming
Software Development
16 Years Ago
by VernonDozier
…{ cout << "Please type the name of your
input
file
: "; cin >> FileName; cout << …(!inFile) { cout << "Can't open
input
file
" << endl << "Would you…{ cout << "Please type the name of your
input
file
: "; cin >> FileName; cout << …
Can't Read Input File
Programming
Software Development
16 Years Ago
by myselfantara
…infile.open("Proj4_input.txt"); //
input
file
opens if(!infile) //checks if
input
file
can be read properly { cout <…(correct_word); //printSolution(correct_word); //compareWord(correct_word); infile.close(); //
input
file
closed return 0; } void initialize(char guessed_word[MAX_SIZE],int length…
Re: Reading an input file as a class memeber function
Programming
Software Development
19 Years Ago
by sifuedition
… read the
input
file
from the header
file
or "pass" the
input
file
to the…case 1: cout << "Enter the
input
file
name. "; cin >> ifn; cout… } delete countb; o << "The
input
file
originally contained values in this order: \n"; …
New to C++, problems with input file
Programming
Software Development
16 Years Ago
by skitzo315
… I have a function that opens an
input
file
. It asks you to
input
a
file
and if it can’t open the… { cout << "Please type the name of your
input
file
: "; cin >> FileName; cout << endl;… if(!inFile) { cout << "Can't open
input
file
" << endl << "Would you …
Read large input file to memory
Programming
Software Development
15 Years Ago
by sureronald
… python program that gets
input
from an
input
file
. It works fine for small
input
files since after opening the
file
I did this to… that I need to extract all the data in the
input
file
before I begin any operation. I will be doing lots…
Array From Input File
Programming
Software Development
15 Years Ago
by PDB1982
… I don't know the amount of values in the
file
.
Input
File
Has: 21.22, 13.23, 43.12, 123.54, 656…]; int j; ifstream
Input
;
Input
.open("InputNumbers.txt"); if (
Input
.fail()) { cout << "Can't Open
Input
File
!" <<…
Reading an input file as a class memeber function
Programming
Software Development
19 Years Ago
by sifuedition
… use a class for a program that reads an
input
file
, prints the
file
, sorts the list then prints the sorted list. This… I am imagining a member function List.read where the
input
file
will be processed into the array. Is this too complicated… have the member function contain the code to access the
input
file
? If the array is a part of the class, …
Re: Reading an input file as a class memeber function
Programming
Software Development
19 Years Ago
by sifuedition
… using the second ifstream obj on the same
input
file
I read the
file
through once and counted it before I created the…. Will ifstreamobj.clear() clear the actual
input
.dat or just the buffer for the
file
I just read in? This may be… in my previous classes. Please don't feel that your
input
is unappreciated. I thank you very much for your time…
Help with calculating avrg from input file.
Programming
Software Development
18 Years Ago
by swordy06
… from my c++ class. The assignment is to use a
input
file
with the following 1 4/12/2007 34 -- 1 is… ref, ctemp, myloop; char mydate[9]; //
File
Management ifstream inFile; //
Input
File
Logical Name ofstream outFile; //Output
File
Logical Name inFile.open("H…
Re: New to C++, problems with input file
Programming
Software Development
16 Years Ago
by soroushc
… mean also that after opening a
file
it must ask the user for another
input
? [ICODE]#include<iostream>…{ cout << "Please type the name of your
input
file
: "; cin >> FileName; cout << endl…if(!inFile) { cout << "Can't open
input
file
" << endl << "Would you…
Re: Can't Read Input File
Programming
Software Development
16 Years Ago
by Ancient Dragon
>>The code is not able to open the
input
file
. Obvious answer -- the
input
file
doesn't exist or is not where you think it is.
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
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
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
© 2025 DaniWeb® LLC