Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
file-reading
- Page 1
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by lennyli
… > You can technically make the server launch an .exe
file
like Notepad, but: > > It will run in…maxwi>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, in…
Re: How to open an Excel Document in VB.NET
Programming
Software Development
3 Weeks Ago
by JamesMichaelm
I see it's been a while since you posted, but I'm curious if anyone here has tried using the Open XML SDK instead of Interop or OleDb for
reading
Excel files. I found it faster and doesn't require Excel to be installed, though it can be more complex for writing. Wondering how others handle big Excel files or ones with tricky formatting?
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by Neil_brown001
… server You can technically make the server launch an .exe
file
like Notepad, but: It will run in the background on… appear, it could be an HTML/CSS issue, or the
file
isn’t loading. Make sure the app is being served…
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by lennyli
> Are you sure IIS is configured to allow running external scripts? The document folder and asp
file
has security permission set to ALL rights for 'everyone'. In IIS, under handler mappings for .asp files, under request restriction/access, script was chosen (not execute) for feature permissions, all 'read' 'script' 'execute' are chosen
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by Reverend Jim
>No, Javascript cannot run/start executables on the client machine. Technically correct but there are ways around it. For example, save a
file
in a special folder on the target computer, which has a folder watch on that folder. The watching task could then trigger a local task.
Re: file reading help
Programming
Software Development
15 Years Ago
by DangerDev
see, after first pass of for look,
file
reading
pointer will be at the end. so during next for loop passes it wont go inside while loop as (! inFile.eof() ) will be false. You have to reset the
file
reading
pointer to start of the
file
before while loop.
Re: File reading
Programming
Software Development
12 Years Ago
by Moschops
…,ios::in); cout<<"Error while opening
file
"< fin.get() cout< cout<…lt;"------------------------------"< cout<<"ENTIRE
FILE
HAS BEEN DISPLAYED"< I see that … That makes no sense. Why? Lines end with `;`
File
reading
in C: http://en.wikipedia.org/wiki/C_file_input/output
Re: File Reading problem
Programming
Software Development
15 Years Ago
by Lerner
… then prevents the loop from proceeding. Finding the end of
file
(EOF) is one of the conditions that causes the streams… successfully read in. If eof() returns false, then the
file
reading
was incomplete because the stream went into a failed state …
Re: File Reading & Storing In Class Objects
Programming
Software Development
11 Years Ago
by Moschops
…. Let's see the code! I would expect that your
file
reading
code in its simplest possible form would look something like…].age; which you would then have improved with loops and
file
checking and all that sort of thing. So what does…
Re: file reading problem
Programming
Software Development
11 Years Ago
by pritaeas
Closed, continued here: http://www.daniweb.com/software-development/c/threads/475529/
file
-
reading
-problem
c# file reading problem with 2-d arrays
Programming
Software Development
12 Years Ago
by mIND.dEcEpToR
…3- is my c# code to do
file
reading
with the display too: public void populate_grid_by_file()…< Sodoku_Gri.GetLength(0); i++) { while ((line =
file
.ReadLine()) != null) { for (int j = 0; …when i display my array with the
file
reading
above it is like: 1--2--…
CSV file reading
Programming
Software Development
12 Years Ago
by MissAuditore
Hi, Have a csv-
file
with time as heading for each column and first column …. n*m table, or plot. I'm having problems
reading
the csv
file
: fname = r'C:\Users\Desktop\Temperature.csv' T1 = '15… the timelist is 1. I am a beginner in csv
file
reading
:( What I want to do is decide which time intervall…
File Reading
Programming
Software Development
17 Years Ago
by hyperzero4
… first problem so far is
reading
the maze
file
from the txt
file
I recieved in class. The
file
looks like this: 30 30… task, I need to take this information off of the
file
into two int variables (row and cols) and one 2D… array (maze[30][30]) From what I've learned about
reading
files, I came up with this: [CODE=cplusplus]#include <…
Re: File Reading
Programming
Software Development
17 Years Ago
by Ancient Dragon
… array values than what was read from the
file
. In your example, 30 * 30 is 900…17 is wrong. the >> operator stops
reading
at the first space or at the '\n'…character. I guess the lines in the data
file
can contain spaces since that's what you … 0; // read number of rows and columns from the
file
mazefile >> rows >> cols; //…
File reading
Programming
Software Development
10 Years Ago
by HuePig
Hi, I'm having trouble
reading
a
file
the way I want it to. /*Textfile.txt*/ ROOM Closet …; std::string check2; bool exit; std::ifstream
file
(fileName); if (
file
.is_open()) { while (
file
.good()){ std::getline(
file
, check); if (check == "ROOM"…
Re: File Reading
Programming
Software Development
17 Years Ago
by CubedStooge
…; endl; } } int main() { ifstream mazefile("maze1.txt"); //check
file
opened correctly if (! mazefile) { cout << "Error opening… input
file
\n"; exit(1); } int rows, cols; mazefile >>…
Re: File Reading
Programming
Software Development
17 Years Ago
by Ancient Dragon
[quote]The way I've broken down the task, I need to take this information off of the
file
into two int variables (row and cols) and one 2D array (maze[30][30])[/quote] You have both missed one important piece of information -- according to the above you must use a 2d array. Both of you are using just 1d array.
Re: File Reading
Programming
Software Development
17 Years Ago
by hyperzero4
… user for the filename that contains the maze. Read the
file
name into a string variable. Remember that the argument to… <string> string filename; cout << "Enter
file
name:" << endl; cin >> filename; ifstream…
File reading help
Programming
Software Development
16 Years Ago
by agentkirb
… I'm at the beginning where I'm just
reading
the information in. The goal of this short bit… be able to read in multiple dates from a
file
, but I'm keeping it simple for now).… statement where I'm checking to see if the
file
opened. If I take out that whole if statement,…0 0 0, leading me to believe that the
file
isn't opening for some reason. Is it …
Re: File reading help
Programming
Software Development
16 Years Ago
by agentkirb
…, but one question. In the get line function... whats "
file
" supposed to be? I would assume that its supposed… to be whatever my
file
is, but don't I have to declare it above…'t the problem be that the
file
isn't opening for some reason? It's
reading
"error occurred" because those…
Re: File reading
Programming
Software Development
12 Years Ago
by mical700
… code: #include <stdio.h> int main() { char *inname;
FILE
*infile; char line_buffer[BUFSIZ]; /* BUFSIZ is defined if you include…;r"); if (!infile) { printf("Couldn't open
file
%s for
reading
.\n", inname); return 0; } while (fgets(line_buffer, sizeof…
Re: File reading
Programming
Software Development
12 Years Ago
by mical700
…deceptikon. But it still reads the hole
file
. Here is my updates code: #include…;stdio.h> int main() { char *inname;
FILE
*infile; char line_buffer[BUFSIZ]; /* BUFSIZ is defined if…if (!infile) { printf("Couldn't open
file
%s for
reading
.\n", inname); return 0; } for (…
Re: File reading help
Programming
Software Development
16 Years Ago
by ArkM
… it's OK to pass std::fstream argument. Of course,
file
var in the snippet may be your infile. Overloaded input… of reasons to fail on
file
open operation: no such
file
(
file
name misprinted,
file
erased and so on),
file
access denied, disk error etc…
Re: File reading
Programming
Software Development
10 Years Ago
by HuePig
I fixed this with a better
file
format, now indicating the number of exit and used it in a for-loop. Inside the for-loop, I created the exit and push_back it in the vector.
Re: File reading help
Programming
Software Development
16 Years Ago
by MosaicFuneral
…++ has it's own input tools, you never close() the
file
very BAD!, why do you need exit()? [code]ifstream infile…; infile.open("
file
"); if(infile.is_open()) { do stuff here; infile.close(); } else…
Re: File reading help
Programming
Software Development
16 Years Ago
by agentkirb
… up I get "Error occured" There IS a
file
called input.txt in the same folder as this program… date 11/2/2007. The program and the input.txt
file
are both on a flash drive, does that make a…
Re: File reading help
Programming
Software Development
16 Years Ago
by agentkirb
… Error occured once again. I'm going to try changing
file
names or maybe putting it into a different folder, or… perhaps using the whole
file
path. Because for whatever reason its not opening it. The…
Re: File reading help
Programming
Software Development
16 Years Ago
by ArkM
…][code=c++] sources [/code][/noparse] 3. Probably more robust text
file
input method: [code=c++] std::string line; std::istringstream is…; while (std::getline(
file
,line)) { // read a line is.str(line); // attach a line…
Re: file reading
Programming
Software Development
13 Years Ago
by pelin
the average is calculated like this( w1*g1 +w2*g2..... wn*gn)/100 i dont know how to indicade it on my code so i just said (wn*gn)/100 but doesnt work it should work for n times grades and weight so even if i have 4 peoples grade the code should know its 4 by
reading
the
file
:/
Re: file reading help
Programming
Software Development
15 Years Ago
by jonsca
It might have been
reading
the last e in "true" multiple times. I'm not sure, though. Even working with the char * I wouldn't have read it in character by character I would have used getline and have the in.getline() statement drive the loop. I would just stick with the std::string and then you don't have to worry about any of it.
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