6,015 Topics

Member Avatar for
Member Avatar for nyfan68

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 …

Member Avatar for nyfan68
0
330
Member Avatar for bavenbabu

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 …

Member Avatar for bavenbabu
0
241
Member Avatar for c.pentasuglia

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 …

Member Avatar for c.pentasuglia
0
247
Member Avatar for Behseini

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 …

Member Avatar for thines01
0
1K
Member Avatar for memz

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(); …

Member Avatar for memz
-1
308
Member Avatar for ilovejava

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?

0
80
Member Avatar for weeziefoo

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 …

Member Avatar for weeziefoo
0
608
Member Avatar for shafeequeom
Member Avatar for balagod

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 = …

Member Avatar for albivl91
0
1K
Member Avatar for hawkeyeviewonu

Sorry for my english.. Im trying to make a program that show the shortest route of this nodes using BFS algorithm.. ![115](/attachments/large/3/115.JPG "115") 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 …

Member Avatar for histrungalot
0
985
Member Avatar for mbhanley

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 …

Member Avatar for mbhanley
0
466
Member Avatar for Jorox03

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 …

Member Avatar for Jorox03
0
394
Member Avatar for tnavy99

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 …

Member Avatar for tnavy99
0
172
Member Avatar for VengefulToast

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 // …

Member Avatar for VengefulToast
0
284
Member Avatar for nee_88

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++; …

Member Avatar for nee_88
0
251
Member Avatar for triumphost

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. …

Member Avatar for mike_2000_17
0
308
Member Avatar for RickCJ7

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, …

0
132
Member Avatar for wolwayne

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 …

Member Avatar for wolwayne
0
182
Member Avatar for razamughal67

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 …

Member Avatar for razamughal67
0
10K
Member Avatar for CKShia

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, …

Member Avatar for histrungalot
0
1K
Member Avatar for eltonpiko

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 …

Member Avatar for Mitja Bonca
0
278
Member Avatar for eltonpiko

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 …

Member Avatar for QVeen72
0
277
Member Avatar for Dendari

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 …

Member Avatar for Dendari
0
205
Member Avatar for dkXIII

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 …

Member Avatar for Tommeh
0
271
Member Avatar for Kid23

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 …

Member Avatar for JorgeM
0
198
Member Avatar for rathishcr89

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"); …

Member Avatar for pritaeas
0
69
Member Avatar for rajaag

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 …

Member Avatar for rubberman
0
126
Member Avatar for bsabowala

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 …

Member Avatar for Patil Raj
0
164
Member Avatar for YodaMerlin

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 …

Member Avatar for emclondon
0
198
Member Avatar for dinners

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 << …

Member Avatar for m4ster_r0shi
0
101
Member Avatar for Sawamura
Member Avatar for Sawamura
0
2K
Member Avatar for Aviplo

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 = …

Member Avatar for ExpertMind
0
3K
Member Avatar for coder_10

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 …

Member Avatar for coder_10
0
2K
Member Avatar for arunkumars

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 : …

Member Avatar for BobS0327
0
217
Member Avatar for mc3330418

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; …

Member Avatar for mc3330418
0
344
Member Avatar for neuralcomplex

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 …

0
118
Member Avatar for sasho648

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) …

Member Avatar for sasho648
0
249
Member Avatar for slashqb

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. …

Member Avatar for slashqb
0
174
Member Avatar for sanket1512

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 …

Member Avatar for richieking
0
26
Member Avatar for DaveyMoyes

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 …

Member Avatar for cereal
0
184
Member Avatar for ostrados

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, …

Member Avatar for ostrados
0
1K
Member Avatar for paulnamroud

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. …

Member Avatar for thines01
0
214
Member Avatar for morrowsnow

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 …

Member Avatar for 117
0
280
Member Avatar for chrlop

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 …

Member Avatar for chrlop
0
895
Member Avatar for danielsikes

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. …

Member Avatar for pritaeas
0
245
Member Avatar for LdaXy

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 …

Member Avatar for NormR1
0
161
Member Avatar for luislupe

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 …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for mehnihma

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) ? …

Member Avatar for mehnihma
0
185
Member Avatar for codecrypt

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 …

0
64
Member Avatar for Sinderone

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?

0
43

The End.