6,015 Topics
![]() | |
I have an assignment which is two parts. The first part I have solved. It calls for me to write a program that can read an XML file which then creates a purse a purse object and then prints the total value of the coins in the purse. The second … | |
I had a file named start.php in my D:\Wamp folder.I need to upload the file and enter the full path ie D:\Wamp\start.php into my database.I did the code.But I am not getting the full file path in my database the Code is as follows: <tr> <td width="71">Select a file <span … | |
In a nutshell i have a java program that takes parameters from an XML file. I made a .jar file from my java project. Within the java project i have the XML file set to a static directory, i'd like to be able to change that so the jar would … | |
Hi, I am trying to run an application which is supose to present a CSV file contents in a DataGridView.The problem is the csv file contains a line (Fiist Line) which is the Title of CSV like: ================================ Title: Titanic Director,Year,Rate,Star1,Star2 James Cameron,1997,7.5,Leonardo DiCaprio,Kate Winslet ================================ and here is my … | |
help me in this code .. it is not work .. public static void CreateFile() throws IOException { File f; f = new File("myfile.bat"); if (!f.exists()) { f.createNewFile(); System.out.println("New file \"myfile.bat\"has been created"); } } public static void getFiles(String path) { File dir = new File(path); String[] children = dir.list(); … | |
So I want to parse a .dae collada file which is stored xml. Now to parse the file should I use the SAX or DOM parser. THe file size of the collada file ranges from 200kb-40mb files. Is the file too large for a DOM parser? | |
I am a CS1 student and have had no issues until this point in the class really. I have been working on this for awhile now and cannot figure out how to get this to work! I am supposed to use this code and modify it to #1 - open … | |
Please give a image uploading script and displaying the uploaded images link in the same page. | |
In below code using i try to upload multiple files to remote URL. but only 1 file data only i am receiving. please help any one to resolve issue. Remotepage.php i am not getting sign,cheque file details [CODE]<?php function do_post_request($url, $postdata, $files = null) { $data = ""; $boundary = … ![]() | |
Sorry for my english.. Im trying to make a program that show the shortest route of this nodes using BFS algorithm..  i tried to print the prev array which shows the shortest route but somehow it doesnt appear on console when running.. how to fix it? btw, is … | |
Need help with code i am trying to acheive upload of videos but when they are uploaded the file names need to be changed to have hyphens in replace of white space and still keep the exstensions. its proving difficult because once uploaded ffmpeg needs to read the output as … | |
I am trying to modify some code that was written in lecture to develop a program that simulates rgrep. The aim of the project is to search a directory's files for a string and output the line it occured on. The problem I'm having is I'm not sure what to … | |
Hey Everyone, I am including my current code. Can anyone give me advice on my middle function declaration? I rewrote this a few times and am now going on 12 hours spent on this one function alone! I am trying to just get it to display the last 10 lines … | |
Will someone please tell me why I keep getting my custom file not found exception? The file is spelled correctly and is in the same directory of my java file. I am programming on Eclipse on Mac OS X. Here is my source: // Dillon Sheffield // Lab 10a // … | |
Please refer to the code below.It is used to extract files from a given directory, for further processing. #include <dirent.h> #include <stdio.h> #include <string.h> int main(void) { int i=0; struct dirent *direntry; dir = opendir("E:/muzikk"); if(!dir) { printf("Error: directory did not open!\n"); return 1; } while((direntry=readdir(dir))!=NULL) { printf("%d %s\n",i,direntry->d_name); i++; … | |
Hey all, I've been searching Rohitab, CodeProject and various other sites to figure out how to write OPCodes to a file and cannot figure it out. I thought I'd ask here because it's the only site I have an account on and I usually get my answers here or hints. … | |
I have searched this forum and see that there are quite a bunch of topics related to files being used by another process. However, none of them seem to fit or work for me. This is my scenario - I have an XML file that is used as a template, … | |
My web hosting service provider allows me to uplaod my ROOT.war file only. and there is no directory structure. So is there any way by which I can upload pics and add new pages or make changes in existing pages without re-uploading the entire ROOT.war file. P.S. I also want … | |
Hello every one i think all is fine i want to open a folder with a file path Example: i have a file path c:\testfile.txt now we want to open folder of this file where save my testfile.txt file using a command botton i mean {open containing folder} please help … | |
Hi i am a newbie in C programming especially in the socket area. Supposely i am writing a FTP, and want to **_get_** and **_put_** file in the FTP. However, i have encountered a bug/error when client is trying to get(download) file from server. The problem is as follow: First, … | |
Hi i have a vb project im getting a bit of trouble with. this is how it should work 1. user input text in the textbox. 2. the input text will be count as single character each one by one 3. after been checked they will be writen to a … | |
Hi i have a vb project im getting a bit of trouble with. this is how it should work user input text in the textbox. the input text will be count as single character each one by one after been checked they will be writen to a text file but … | |
Hello everyone. I'm working on a program which should edit a text file by adding/deleting some specific lines. By default this text file doesn't have these specific lines, so the program will add them. But I also want it to replace them if they're already in the text file. Basically … | |
I wrote a selling ticket program for a concern into a text file name "Sales.txt" to show the TotalValue with the following format: 21 30 40 24 87 44 51 29 58 20 Totally, I have 10 values. However, my new assignment asks me to make a new program that … | |
Okay here is my dilema. I am trying to transfer files between my laptop (vista) and my desktop (Windows 7) over the internet, through network and sharing center settings, and do it with privacy. You might think that the solution to this would be easy, as one would think turning … | |
hi am new for php.. am trying a download a csv file.. i need to create a new file after every 50 records.. 0.062201000014461.0002771700. 0.062201000014480.0000000000. 0.062201000014723.0005133400. 0.062201000015828.0005848000. 0.062201000015927.0003018200. this is the sample output. i need to split the output file so the each file should contain 50 records. <?php include("conn.inc"); … | |
Hai Friends i want to develop an application to share files through internet iam using MySQL database as a back end and for developing user interfaces i am in confusion So please give me any suggestions............ to develop a user interface that connect to the internet and MySQL database..... THANK … | |
Okai so I have a jfilechooser : JFileChooser chooser = new JFileChooser(); int returnName = chooser.showOpenDialog(null); if (returnName == JFileChooser.APPROVE_OPTION) { f = chooser.getSelectedFile(); if (f != null) { // Make sure the user didn't choose a directory. path = f.getAbsolutePath();//get the absolute path to selected file //below line to … | |
This might be a very simple answer but it's been stumping me. I need to load an xml file so Ican parse in in javascript. But the file is located on a different server entirely. Can I download it to disc with javascript, so I can load it later? Thanks … | |
I want to read the contents of a file and input them as variables. I have written this code: while (!numbersList.eof()) { numbersList >> type >> num1 >> num2; Complex *object = new Complex(type,num1,num2); cout << "For line number " << n << ": " << endl; object->printAll(); cout << … | |
Hi all, I need to list all files in directory. How i can do this. Thank you | |
Can anyone help me with importing text file to sql server using vb.net here is my code ~~~ vb Dim ImportedFile As String Dim ImportedLines() As String Dim OneLine() As String Dim strSQL As String Dim i As Integer If My.Computer.FileSystem.FileExists("D:\PPOS\Sales_report\inventory_255503221452_Cake102.CSV") Then ' Read the whole text file ImportedFile = … | |
I am trying to read a file from an offset till end of file: int i,sizeb=210; char *buffer; //[1024]; FILE *f; f = fopen("myfile", "rb"); printf("Reading file.\n"); fseek(f, sizeb, SEEK_SET); long s = ftell(f); //rewind(f); fread(buffer, s, 1, f); fclose(f); But I never get the right result. Also when I … | |
Hi, Am trying to check if a remote directory exists. my string has a path "\\1.1.1.1\XYZ", 1....1 being the IP address of the computer am trying to connect to, But Directory.Exists(stringPath) returns true when I debug the application and the same code returns false from the setup exe. Note : … | |
I have a header file. #include <iostream> class coinReturn { public: coinReturn(); coinReturn(int quarters, int dimes, int nickels, int pennies); void setChange(int quarters, int dimes, int nickels, int pennies); void getChange(int& quarters, int& dimes, int& nickels, int& pennies); void print (); private: int countQuarters; int countDimes; int countNickels; int countPennies; … | |
the simple thing i want to achieve is to be able to browse a file on my system an then use a servlet to finally store the file as a byte stream to my DB2 database. Initially i started by using coding the servlet part as a java application by … | |
I've made some functions which can insert file inside a file but only with a small text files and they're very slowly. I will thank you if someone know a better way. Here are my functions: 1st struct Tree { char Symbol; Tree* next; } ; Tree* GetTreeHandler(unsigned long num) … | |
Operating System Used:Ubuntu 11.04 Compiler Used: GCC Program related files:[Git Hub Link][1] I'm trying a implement program which will do a job, same as that of CPP (The C preprocessor) when I compile a .c file. In this particular code Copy_file_to_buf function not copying the whole file into the buffer. … | |
hello, I want to get File Name in specific folder with specific extension by using CPP in linux.. example.... suppose Full File Pathname is /data1/test.txt then I want to handle a code with directory /data1/ and extension .txt then code should get file name as "test". this can be achieved … | |
Hi All, I have the following scrip that uploads a image to a destination folder on my server. What I am trying to do is "rename" the uploaded file and update the link in the back end database. The file uploads and stores in the correct folder, but what it … | |
Hi all, hey guys could you please help me in this issue: i get warning message whenever i try to run my login form Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\db.php on line 10 unable to connect to the database i am using xampp, … | |
Hello, Actually, i have a website url where these files are stored. Example: http://www.mywebsite.com/files/file.txt http://www.mywebsite.com/files/image1.gif http://www.mywebsite.com/files/logo.jpg http://www.mywebsite.com/files/letter.doc http://www.mywebsite.com/files/dll/barcode.dll http://www.mywebsite.com/files/dll/MyLib.dll http://www.mywebsite.com/files/dll/Common.dll http://www.mywebsite.com/files/exe/MyApp.exe etc... So, my target is to build a small Device Application (Windows CE) in order to update these files on the device itself everytime the user clicked Update button. … | |
Ever since the last virus I thought I had removed, my PC has been acting strange. Every time a run superantispyware it will find a critial threat, a broken file assocation. When I try to shut windowns down or restart, I get 3 not responding messages about Rundll before the … | |
Hi I was ask to do a code in c wich read the contenent inside a txt file and display it then after display it they wan't me to tokenize those command and interpretate them in c. I have no experience in c if someone can show me how to … | |
Hi, I am trying to copy a directory from one spot on my server to another spot on my server. I have copied the directory successfully, but suppose I delete a file in the "parent" directory. I want the "child" directory to be exactly the same as the parent directory. … | |
I created a function that saves a file with a custom extention ".nra" however each time that i enter a file name, it throws ArrayIndexOutOfBoundsException public static void SaveFileNra() throws Exception { if(gl.DataStack.isEmpty()) { System.out.println("There is nothing to save!\n"); Menu(); } else { System.out.print("Enter the directory you wish to save … | |
The problem I have and can't understand is that I receive a segfault when trying to close the second file (fclose(ofp)). Input file is a xml file that will generate food for output file. At present time, input file is being read for parsing but no output for outfile is … | |
![]() | I need to take arguments and change the extensio of the file for writting but I get java.lang.ArrayIndexOutOfBoundsException: 1 Why? Is there any better way? // change file name for saving the output file int dot = inputFile.lastIndexOf('.'); // check for the dot String baseName = (dot == -1) ? … ![]() |
Hello, I've been having a little dificulty with passing this array to my text file. What i'm doing is writing a questionaire type quiz which involves outputting questions, receiving input, and taking each input value and listing it in a text file. What I have works, except for writing the … | |
I am trying to populat a drop down list from a DB and would like to know what .xxx needs to go on to that page or is it all in the front side page? |
The End.