Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
file-count
- Page 1
Re: Question/Answering over SQL Data Using LangGraph Framework
Programming
Computer Science
1 Month 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.
File problem (Basic)
Programming
Software Development
19 Years Ago
by SpS
…],"r"); char c; while((c=getc(
file
))!=EOF) { if (c=='\n') {
count
+=1; std::cout<<std::endl; } else…<<"\nNo Of Lines In the
File
:"<<
count
+1; fclose(
file
); return 0; } [/code] My program crashes whenever…
Re: file count
Programming
Web Development
15 Years Ago
by n_e
How about strstr()? [code] while ($f = $d->read()) { if ( strstr( $f, ".php" ) continue; //skip this one [...rest of the code....] [/code] But be aware that this is case-sensitive. So .PHP
file
will not be detected!
Re: File upload will not work in linux
Programming
Web Development
10 Years Ago
by berserk
…here is what i have so far. $
file
= NULL; // Where the
file
is going to be placed $target_path = …quot;uploads/filename.extension" */ $
file
= $
file
.basename($_FILES['
file
']['name']); $file_handle = file_get_contents($target_path, $
file
); $
count
= 1; mysql_query("TRUNCATE TABLE …
Re: count extensions
Programming
Software Development
16 Years Ago
by Argo54325
… sort my extensions and when i tried to sort the
file
size, some number where out of place. (0's in… there are only 1 type of an extension and the
file
count
is equal to the number found, the…
Re: count extensions
Programming
Software Development
16 Years Ago
by Argo54325
Just in case you didn't see this before you posted: Also i need to know how i should accumulate the data (so there are only 1 type of an extension and the
file
count
is equal to the number found, the
file
size is also accumulated)
Read file's content from the back
Programming
Software Development
12 Years Ago
by Sendy Hipo
… end of the
file
count
-= 1; acc = numByte[
count
]; // getting starting read byte for seekg for(int index = 0; index <
count
;
count
--) {
file
.seekg((acc…
Re: word/line/character count in files
Programming
Software Development
16 Years Ago
by newtechie
…output [code=java] /* pgm to
count
the characters in a
file
,no. of lines in a
file
and no. of words */ import java…. of lines in the
file
= " +
count
); } public void Words()throws IOException //
count
no. of words. {
File
f = new
File
("in.dat"); …
word/line/character count in files
Programming
Software Development
16 Years Ago
by newtechie
…. of lines in the
file
= " +
count
); } public void Words()throws IOException //
count
no. of words. {
File
f = new
File
("in.dat"); FileReader…
serch text file
Programming
Web Development
16 Years Ago
by cosby
…lt;br />"; $
file
=$q."file1.txt"; $lines =
file
($
file
); $
count
; $lineNumbers; if ($lines)…,$lineNumber); } } //$str_array = explode(" ",$
count
); //echo $str_array[0]."<br/>"; …
Creating ouput files dynamically - (File I/O)
Programming
Software Development
15 Years Ago
by Web_Sailor
… using namespace std; void parseFile(string
file
, string line) { ofstream out(
file
.c_str(),ios::app); out<<…line = ""; int
count
= 0; while(getline(in,line)) { string
file
= "
file
";
count
++; switch (
count
) { case 1: parseFile("…
Re: Creating ouput files dynamically - (File I/O)
Programming
Software Development
15 Years Ago
by csurfer
… str[100],*str1="
file
",*str2=".txt"; //You have
count
and
file
<
count
> is the
file
you want to open… sprintf(str,"%s%d%s",str1,
count
,str2); f…
Count Lines Of Text In Txt File
Programming
Software Development
15 Years Ago
by especta
… Text In Txt
File
hi i have text
file
ex. (sample.text) and i need to
count
lines in
file
and disply in memo…
count program
Programming
Software Development
10 Years Ago
by jawahersaad
count
the number of lines of code in a
file
, excluding blanks and comments also
Count
How many classes,
Count
How many function or procedures, how many lOC in each function or class,
Count
the lOC in each part to get the total program size ?
Corrupt PDF file inline or attachment
Programming
Web Development
13 Years Ago
by petrakid
… I also save the
file
size the
file
name and the
file
type. The
file
upload works just fine.…the code for retrieving and displaying/downloading the
file
(with the assumption that I've already…(inline), tried to simply download the
file
(attachment) (the
file
downloads but it's corrupt), and …store on the filesystem due to
file
count
restrictions.
Csv file writing multiple times
Programming
Software Development
10 Years Ago
by abaddon2031
…specific folder for specific files. Once it finds a
file
that matches the re.split peramiters that it is…writes the data to a csv
file
. The issue is that for every
file
that it loops through and …fileOutput+'/Filecount.csv','wb') as f: data=['Printer Type', '
File
Count
'] writer = csv.writer(f) for item in data: writer…
Reading a txt file into a perl hash
Programming
Software Development
15 Years Ago
by perlnewbe
… perfrom the following. Read in the
file
Create a Hash For each word in the
file
,
count
how many times the word occurs…: The words a, not, blue occurred 3 times in the
file
. Etc… etc….
get a random file name from a specific folder
Programming
Software Development
9 Years Ago
by major_lost
Rev Jim: I need to get a random
file
name from a specific directory (folder) each time this… Get the files - Directory.GetFiles or DirectoryInfo.GetFiles Get the
file
count
- Array.Length Generate the random number - Random.Next Get …the random
file
- index the array using the random number I have …
C++ File I/O
Programming
Software Development
19 Years Ago
by kdw3
I am trying to create a simple program to read in words from a
file
,
count
the words, and output a histogram of word lengths normalised to 1. I am having trouble reading in the words from the
file
. If anyone could help, it would be greatly appreciated. Regards Kevin
Adding A File Counter
Programming
Software Development
11 Years Ago
by Cap'nKirk
… that searches through a folder and outputs the results one
file
per line in html format. Code below: @ECHO OFF &… a counter so that each line starts woith the initial
file
count
, i.e. the first line would start with 1 and…
Re: File problem (Basic)
Programming
Software Development
19 Years Ago
by Ancient Dragon
mixing c and c++
file
operations is undesirable, but not something that will crash the … is that there is no check to see if the
file
was opened successfully. You can't just assume that. The…
file is not uploading - problem. Please help urgently
Programming
Web Development
13 Years Ago
by FaisalSarfraz
…$arr = explode(".", $fname); $ext = $arr[
count
($arr) - 1]; $size = filesize($_FILES['
file
']['tmp_name']); print_r($_FILES); if ($size > 70 * 1024…
Re: file is not uploading - problem. Please help urgently
Programming
Web Development
13 Years Ago
by diafol
…type == "Book") { if(move_uploaded_file($_FILES["
file
"]["tmp_name"],"books/" . $name)){ …{ $msg .= "<h1>Unable to upload
file
</h1>"; } ... [/CODE] How about…quot;notes/$name"; if(move_uploaded_file($_FILES["
file
"]["tmp_name"], $loc)){ echo &…
Re: file is not uploading - problem. Please help urgently
Programming
Web Development
13 Years Ago
by FaisalSarfraz
…type == "Book") { if(move_uploaded_file($_FILES["
file
"]["tmp_name"],"books/" . $name)){… $msg .= "<h1>Unable to upload
file
</h1>"; } ... [/CODE] How about…quot;notes/$name"; if(move_uploaded_file($_FILES["
file
"]["tmp_name"], $loc)){ echo &…
Re: file is not uploading - problem. Please help urgently
Programming
Web Development
13 Years Ago
by FaisalSarfraz
It is giving error that "unable to upload
file
"
Re: file is not uploading - problem. Please help urgently
Programming
Web Development
13 Years Ago
by veedeoo
… your upload ( this is when you actually rename, move the
file
, save data into your database.
file count
Programming
Web Development
15 Years Ago
by seularts
Can anyone please help me exclude the .php files from this code? [CODE] <?php $dir = 'x'; $filecount = 0; $d = dir($dir); while ($f = $d->read()) { if(($f!= ".") && ($f!= "..")) { if(!is_dir($f)) $filecount++; } } echo 'there are ',$filecount,' files in this folder'; ?> [/CODE] I have tried to …
Re: file count
Programming
Web Development
15 Years Ago
by seularts
I tried it like this: [CODE] <?php $dir = 'x'; $filecount = 0; $d = dir($dir); while ($f = $d->read()) { if(strstr( $f, ".php" )) continue; if(($f!= ".") && ($f!= "..")) { if(!is_dir($f)) $filecount++; } } echo 'there are ',$filecount,' files in this folder'; ?> [/CODE]…
Re: file count
Programming
Web Development
15 Years Ago
by n_e
OK, so probably you have .PHP files instead of .php files. Try replacing: [code] if(strstr( $f, ".php" )) continue; [/code] with: [code] if(stristr( $f, ".php" )) continue; [/code] stristr is the case-insensitive function.
Re: count program
Programming
Software Development
10 Years Ago
by jawahersaad
I have been done with this code but how to
count
class & funcation ! 'Visual basic (.NET)…
file
not found & check the filename and try again", vbCritical) End Try 'Identifier variable for store lines
count
… store lines
count
value Dim Row As String = "" 'Identifier variable for read
file
Dim CSVReader…
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