6,015 Topics
![]() | |
write a Java program that performs the following task on an input text file. 1. Determine the number of characters 2. Count the number new-lines 3. Identify the number of empty lines. I have been working on this problem that I saw on the book and the part where I'm … | |
Data dependence is a consequence of the way in which file-based processing is closely tied to the physical structure of the data stored in files. This causes unproductive maintenance where if a change is made to a file, a change must be made to the interface and all application programs … | |
I have a program for class where I have to read a file of with names and numbers into a class of objects and dynamically allocate it. Header file [code]#include <string> #include<cstring> using namespace std; class Movie { private: string movies; float rating; double profit; public: Movie() { movies = … | |
Hi, I am new to php, and I need to do multiply image upload. Right now I have single image upload which is not working.., so any adive would be appreciated. Here is part of form I use for image upload: [CODE] <i>Vyber obrázek:</i> <input type="file" name="imagefile" /> <br /><br … | |
I'm trying to make a little disk cleaner program and I couldn't figure out how to display the results of scanned directory on list view tool on windows form application. I have a 3 columns and these are File Name, Folder Path and File Size. I want the program to … | |
I want to loop through directory and process the files in them. I do this with the following code. for (root, subdirectories, files) in os.walk(dirDialoog.GetPath()): for file in files: My problem is that the files processed 2 times. I tried the next code, but in that way the files weren't … | |
please find what error in this program.while run it wont display the output #include<iostream.h> #include<fstream.h> #include <stdio.h> #include<conio.h> #include <sys\stat.h> class file { private: int i; int alphabet; int space; public: void alphabets(); void spaces(); }; void file::alphabets() { alphabet=0; fstream f; char s; f.open("NNEWFILE.TXT",ios::in|ios::app|ios::binary); f.get(s); while(s!=EOF ) { if(i>63&&i<91||i>96&&i<123) … | |
can anyone help me with this? im having trouble with renaming a file.. the last 2 digit of DT102T01 up to DT102T15 will count according to the number of files inside the Data_PRN folder. please help! any suggestion will be appreciated.. tnx '===== make directory & rename file . prn … | |
I have a Java program, which launches a app, but before starting, it checks for the version.txt file, and if it doesn't exist, or there is a newer version available off my site, it downloads it. Well, not quite. I've got the part that checks for updates, and file existence, … | |
Let me say here at the start I am not a programmer, just interested.. I am trying to load a file to youtube on the first day of the month and set the file name as the lastmonth-thisyear.avi like March-2012.avi I have tried this but get an error: File to … ![]() | |
I wrote the following code, so that whenever an item from the list is deleted, the file associated with the name of the items below the delted items get updated. But the program isn't working, i have been reviewing this code for last 2 days but worthless. Please help. void … | |
Hello Friends, I have a patient register form in my project... When the patient details will be saved in the database it should also be saved in the text file... I am dynamically creating a folder with patientid and firstname in that folder I am creating a text file patientreg.txt … | |
i'm trying to create a program that asks the user to input a file (but the file name is standard name that will not change) and input a specific character. The program will use looping to find how many of that specific character is in the .txt file. This is … | |
I'm having fits with an assignment. Basically, the program is supposed to read in command line arguments and input from a text file and, through a long and convoluted chain of dynamic structures, sort them according to the command line input. The input text file reads as such: [I]3 "Smith, … | |
nginx server Problem to add trailing slash if I have two or more subdirectories rewrite ^/([^.]*[^/])$ $1/ permanent; //this is working example if I have one directory [url]http://example.com/foo/[/url] (with trailing slash, conventionally a directory) [url]http://example.com/foo[/url] (without trailing slash, conventionally a file) How can add trailing slash if I have two … | |
The code on which I am working, suppose to read the contents of a file "applicants.txt" linewise and store it in a string array. Each element of array should hold one line and so on. I also want to automate the code so that when end of file is reached … | |
friends,, here i have some problem. i did a program for uploading file into "D" drive using "html" and "jsp" but my main problem is when 3 users uploaded their files into "D" drive then how can i differentiate those 3 files means while retrieving files users should get the … | |
Hello Everyone! So ive done some searching and havent been able to find what i need. Partly because i'm not sure exactly what words i should be googling! I am wanting to download gmail emails, and then display them in a spreadsheet like format. I know that emails have unique … | |
Hi, I'm not exactly sure if this is the correct question to be asked but I will tell you what I am attempting. I have an ASCII txt file with data in it. It does not have headers. I am looking for a way to convert this data into an … | |
i m having trouble with updating the fie. every time the code is executed, the variables are not retrieved from the file and start from the scratch. moreover, the file is not updated. plz reply | |
Hello VB.net'ers. I've got a problem. I have a feeling it is an easy one, but for the life of me i cant figure it out. My project at the moment is to grab content from a website and use it in some way (havent worked out this part yet, … | |
I am trying to make a static scanner outside of the main method that can be accessed by every method in a class. However, every time I run it, I get a "error: unreported exception FileNotFoundException; must be caught or declared to be thrown" error. Here is my code: [CODE] … | |
In this code to upload multiple images to a different folder each time, it creates a new folder and moves files to it, but the validation part is not working ! if i remove the validation part the files are uploaded correctly!! I have mentioned using comments that in which … | |
I have a requirement to copy files from a temporary file directory to a unix file system using scp. Please provide me a sample code for this | |
Can anyone help me why unable to upload video and pdf file to the folder? <?php $DBConnect = @mysqli_connect("localhost", "root", "") Or die("<p>Unable to connect to the database server.</p>" . "<p>Error code " . mysqli_connect_errno() . ": " . mysqli_connect_error()) . "</p>"; $DBName = "educationtime"; if (!@mysqli_select_db($DBConnect, $DBName)) { $SQLstring … | |
Hi, I have a complicated (for me) question and it is driving crazy... I just can't find the issue. Basically I'm trying to enable the browser cache for a certain php file. I'm using a script called osdate but don't have much success getting help on their forum. To explain … | |
Hi. I'm using Visual Studio 2005 so I didn't know where to put this topic. This is my problem. I made a qucik search program so when I browse for a text file, it adds that text file to a listbox1. And then when you search result will be placed … | |
Hello EveryBody i want to change a file extention property in visual basic 6 Example; i have a File test.txt or test.jpg what we want ? and we use a command botton and two textbox Text1.text = "C:\test.txt" 'Textbox 1 is my file path Text2.text = ".pdf" or ".psd" ' … | |
So I have a file that has contents that need to be stored into a growing object. By growing I mean that it'll explicitly concatenate the new line it reads into the growing object, pBuff, each time every line is read from the file. I only get the last line … | |
I followed this tutorial [url=http://www.thecpaneladmin.com/change-ftp-port/]How to Change Your FTP Port :: The cPanel Admin[/url] and other similar tutorial, to change ftp port, but still cant make it the problem is, [b]/etc/chkserv.d/ftpd[/b] file always back using the original file, before i edit the file, that still using port 21, after i … | |
Hi, I have this fileupload control which saves excel file on my server, but somehow, if the excel file is larger than 4 mb it does not save the file, i used this code fileupload1.SaveAs can you please help me on why does this happen? Thanks | |
I want my File upload control as read only, so that no one can edit file upload text box. However I could select file using browse button. Write code | |
[B]Hi all, I would ask about fileUpload control, in asp.net 2008 can I know how remaining time to upload file successfully without using threading and without using javascript? the progress bar not problem, the problem that faced me is how to know how much file size was uploaded...[/B] | |
a friend asked me to help him with his lab. the lab involves opening a file and adding the numbers in the file together displaying how many even and how many odd numbers there are. I have the file "textinput.txt" in the directory with the .cpp file but when i … | |
I have a website which has a section under maintenance with a button called create a new file - when you click on this button it does a backup and generate a filename on the same page called *.tbf - the filename changes each time you click on create a … | |
Hello everyone! I have here a code with a random-access file that lets you delete and update any information in the file. Please run the file to see what I'm talking about. [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; #include <cstdlib> int choice; void displaysmenu(void) … | |
I am starting a new project and i plan to use c# for it. Basically what it entails to is reconfiguring a large am mount of config files. 100+ of them. They are each named differently but are prefixed the same (ex: CONFIG_FILE_xxxxxx , where x changes). Inside the files … | |
create the bank account task using structure and Files concept in c. | |
HI I had generate a report with IREPORT 3.7 . I have now a .jasper file. I would want to be able to execute (show) it with a jsp file or servlet. My generated report not use sql queries, only it need 2 parameters. i think to pass these parameters … | |
Hey guys I am in a bit of a pickle at the moment. I have a main folder with my main html file in it or index.html. And also inside that folder I have other flders to contain the other pages/images and css. Does anyone know how I can access … | |
i've already searched but i got more confused when new codes appears in my sight again (cuz im just a newbie) So, what I want to is, when the user successfully uploads the image(upload.php), it will be viewed before continuing into the next step (view.php). [B]index.php[/B] [CODE=php] <html> <body bgcolor="black" … | |
Hi I am trying create a site to upload a video files from a file upload control and convert them into a single format before storing the file path in a database for easy retrieval. I have managed to do all of the uploading and storing file path part, but … | |
hi , I was trying to open a file using fopen() method. It's not opening all the time. some time it opens but the other time its getting crashed.... FILE* tmpfile = fopen(xxxxxx, "r") this is the code i am using.... and every time the value of xxxx is coming … | |
hy all, I want to make code for download multiple file in php so I make in zip file. my code work and can create sip file but when I want to open the zip file appear error message like this " the archive is either is unknown format or … | |
Hello, I have a question about converting text file elements to arrays in VB. I am generally not a .Net programmer, and have really basic question about parsing array elements in VB. I have a text file that is formatted as the following... [QUOTE] "Item1","Item2","Item3" "LineItem1","LineItem2","LineItem3" [/QUOTE] What I would … | |
After an hour of browsing the web, I decided to ask for help for my IB project (can't paste my whole code or I'll be cheating off myself). I don't have much experience, so please explain whatever syntax your solution may have (please don't say rewrite the whole thing). Anyway, … | |
Hi all, here i got a problem where i want to delete file uploaded..my script just remove from database but not remove from directory.. how can i delete from database and directory at a same time?? Please help me.. | |
I have a project that, instead of using MySQL, I am supposed to use txt files to manage data. I have no say in this, I'm doing the project for a client. So I wrote a test file with functions for writing these data files, reading, etc. But it's not … | |
Hello, I have tried my best in achieving this, and for some reason, it's not working. What I am trying to do, is to write to file and echo on screen, a converted version of how many bytes/megabytes etc. a file has been uploaded, and echoed on screen upon success, … ![]() | |
Hi! I'm having a bad time on learning how to store and retrieve image files on MS Access. This is some sort of uploading profile picture thing in my software. The open file dialog stuff and the storing of image file in the MS Access Database are taken care of … |
The End.