6,015 Topics
![]() | |
Hi, I cannot get the full physcial path of a selected file in Firefox. Code below works fine in IE. Is there other way to get full path in Firefox as well? Thanks [code] function getPath() { alert (document.formUpload.file.value); } <form name="formUpload" enctype="multipart/form-data"> Filename:<input type="file" name="file" id="file" onChange="getPath();" /> <input … | |
hi, i have a database that needs to add a files url to the database field. the thing i first want to do is create a new directory for the file and add the file to the directory, then add the url linking the file to the new dircetory. i … | |
Hello I am trying to write to a matrix[3][3] to a file [B]column by column[/B] and at the end of each column to start from the beginning. The problem is I have to seek to write at the position a01 once the first column is written then a02 and so … | |
Here's the problem: One of my scripts allows users to upload MS-Excel files. When uploading the file, users are also required to enter details related to the file - details like start date, stop date, a description of what the file contains, and the file ID#. This Excel file contains … | |
I going to create a central file server to store all my media files (music, HD video, etc.). This server will be accessed by multiple HTPC around the house. I plan on all the PCs and the router to support gigabit ethernet. What I would like input on is how … | |
Hello I know I may receive some grief for not inserting code correctly it is my first post... My question is this: I am reading a huge list of values from a file and I need to store these elevations into an array so they can be used to calculate … | |
I have the following code. when I run the code I have to one by one input fx,ft,apha,m,n. After I run the code: Y 10 0.5 1 10 50 Code works with this way. I writed to a file called "d:\\a.txt" this values(that is upper values).I tried to work the … | |
I am writing a program that allows for people to answer simple questions on Capital Cities of the world. The main program works flawlessly, but I decided to add in a new function that records the user's answers to a question if they get it incorrect and posts it in … | |
HI, My website has an import csv feature. how can I identify that user uploaded a csv file. when I make uploaded csv file from two different systems it shown two separate types like 'application/download' and 'application/octet-stream'. It is confusing. Is there any idea to validate a csv file. file … | |
Hi, I am trying to implement a client server wherein the client must be able to download a requested file off the server and upload a file onto the server. I have implemented the download part of the code using TCP Sockets. In the upload part from the client to … | |
hi all. ok i have been able to create an error message - if the user tries to delete a row which has not been selected first; but it still deletes from the gridview... [CODE]void DeleteRowButton_Click(Object sender, EventArgs e) { LinkButton btn = sender as LinkButton; GridViewRow row = btn.NamingContainer … | |
I'm looking for a way, just about any way really, to set the file version of a file. Clearly, programatically would be best, but at this point any way would be acceptable. What I have more specifically, is a file generated dynamically using CodeDOM. The version of this file is … | |
Heya, Just trying to get a little help on some excercises I need to do, Done 14/15 fine, but stuck on 15th and not sure quite whats wrong. Need to do a systemcall from C program to copy a file, using stat, open, read write and close. So far I've … | |
[CODE=cplusplus] bool BODYTYPE::Seek(BODYTYPE * body) { string line; string key(body->style); size_t found = ' '; fstream file("..\\Data\\BODYTYPE.txt",ios::in); if (!file.is_open()) { cout << "Unable to open file \n"; return false; } file.clear(); file.seekg(0); for(;getline(file,line);) { if((found = line.find(key,0)) == 0 ) { file >> body->style >> body->doorCount; return true; } } … | |
Ok, I'm trying to Create A New File that doesn't exist yet. Basically, I want the user to enter the name of the file and then want VB to create and save the file (currently it will be blank until the user goes back in and reopens it and adds … | |
Hello, I've started learning how to make simple GUI programs in cpp using theforgers tutorial. However I was going to add XP style to my program and I found a page that showed me exacly how to do it for VC++ 6. The problem when I had added the lines … | |
Hi , i have a project in having two classes TreeDisplay(Form.cs) and MytreeNode class in same namespace.:) TreeDisplay class contains all the GUI related stuff like Browse button textbox , label,progress bar and TReeView. I want the user to select a XML file through browse button which will be displayed … | |
Hello i Just learned about the Exec statement, so i trying to make a flash card program that saves your cards. The way that i wanna keep the cards persistent is to save a dictionary to a text file and then just use the exec statement to call forth the … | |
I have this Xml file that i browse from my HDD into my C# program. Now the nodes of this Xml doc get displayed in a tree view in my winform.All my logic is in the winform right now. There are three methods 1. To load the Xml doc in … | |
Hi friends..,i have a problem regarding the regular expressions.My problem is to input a file name and a regular expression to a program and program have to read all the lines of the file and produce the substrings (if present) produced by the Regular expression...I know to input a file … | |
I have written an application to do the following [list] [*]upload a txt file to the server [*]move it from the temporary directory to a more permanent one [*]parse the test file line by line and do some processes [*]create and write the result to a new text file [/list] … | |
Hi I'm wondering how I would go about creating a program that will input data from about 1,000 files containing data such as this: [code] 2.825 1.00697992588 2.875 0.952989176901 2.925 0.91428970229 2.975 0.890110513425 3.025 0.879731596138 3.075 0.959217137445 3.125 1.07391392796 3.175 1.04874407027 3.225 0.857693793906 [/code] I'm wanting to generate an average … | |
I want to write a program that can run a file in my hard disk.For example,a test.bmp file is there in location D:\home\test.bmp,that program should open(like double clicking on it ) that file (test.bmp) and i can view the image contained in the file. | |
I have the following in a dat file: Obe 20 12 15 20 -1 Twitter 16 12 18 19 -1 Karah 30 15 12 3 30 -1 Cappy 12 12 13 15 14 -1 Monkey 17 16 15 14 14 -1 I am trying to write a Java program to … | |
Hi all, I have this problem that my File Download popup window is not displayed everytime I download excel documents. My downloaded excel file automatically opens in MS Excel. My system are both Xp SP2 and Vista, how can I get rid this error. Thanks in advance. | |
Good afternoon all! I am writing an address book for a class that I have, and am stuck on this last part. Any help would be greatly appreciated! When the user selects the "Edit existing record" option, I can't figure out how to make the file overwrite the previous record. … | |
Although I'm a novice in Java I am to make a pool simulator in java with the ability to handle any arbitrary number of balls (i have created a Ball object, balls will be stored in the Ball array called balls). All the parameters are to be read in from … | |
Hey all, I am trying to first write an array to a text text file, delete the array, then later in the program I need to use the array again so I need to open the text file and read the array and call it the same name as before. … | |
Problem: Upload all the file in a folder to Server using JavaScript / web service I was trying to upload all the files from the specified folder from the client machine to the server. At the client side, I used JavaScript to read the entire file from client machine While … | |
Hi guys, Im trying to create a console app that will read from a text file and import the file into a sql database. I have completed the following already: Read from a text file and put out to console Read from sql database and put out to console Now … | |
Hi guys, I have a program im writing that needs to look for a file in a certain directory then when it find the file add the contents to a database. I have the program working which does this however the filename changes depending on when it was created. The … | |
I'm teaching myself c++, and after searching around on the forums, I couldn't find an answer that helped me with this specific problem. The idea is to collect the first name, last name, and SSN of a customer, and create a file using the first three letters of the first … | |
I've encrypted a file from my local machine, but now I'm looking to make it [B]exe [/B]file. User just [B]double click [/B]on it and a form will be displayed to ask for the [B]password [/B]and [B]decrypt [/B]the file. I don't know how to embed a form with encrypted file. Can … | |
ok this is a really basic question but I just can't seem to wrap my head around it. The basic syntax of how to open a file and check it and whatnot makes sense to me. But how the compiler reads from the file doesn't. For example if I have … | |
hi.. I have encrypted a file in C# using [URL="http://www.codeproject.com/KB/security/DotNetCrypto.aspx"]this[/URL] code .. i will upload the encrypted file to my server.. Now i want to write an Equivalent PHP encrip/decript to use the file.. Can i use mcrypt_cbc() to do the job or is there anything special i need to … | |
Im a novice here so if in wrong place forgive me. can I get software that will let me wipe files clean and not just release them for use but leave info there? FWIW am using a dell with XP pro.. | |
hi, i have set a condition on the upload function [code]if (FileUploadControl1.PostedFile == null) { lblResult.Text = "Please select a file first"; } else { //upload a file }[/code] but if i press upload button when no file is selected it still uploads a blank file regardless of the "if' … | |
Hey everyone! I have a problem when I save using FileOutputStream, ObjectOutputStream... Well, there is no problem saving a file in my java application to specified folder e.g. "C:/folder/" (that is made with JFileChooser) but the problem is that I want to use MY self made icon (that has, lets … | |
i will develop bookmark online synchronizer for my project. but what is the suitable file synchronization techniques beside Rsync to accomplish my online bookmark? | |
Hi, i want to read some lines to an output text file in a loop. My problem is, that i want to start clearing the text file and then append to it in a loop. At the moment i use: ofstream file; file.clear(); file.open("book.txt", ios::app); for (map<string,Person>::const_iterator it = adrbook.begin(); … | |
[code=syntax] package testone; import java.io.*; public class fileread { private String[] a = new String[100]; String x; String sh; public void read(){ try { // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream("test.txt"); // Get the object of DataInputStream DataInputStream in = … | |
Hi, I rather my dev team has a PDF file that needs to be compressed before it goes to download by users. Is there a way the compression can happen programatically without human intervention. step a) PDF file upload b) A script compress the file to a preset or acceptable … | |
I'm trying to create a *.csv file using the records stored in a table. Searching the Net, I came across a code snippet that I modified for my use. The relevant code is [CODE] If dlg.ShowDialog = Windows.Forms.DialogResult.OK Then conn.Open() csv = dlg.FileName tw = New StreamWriter(csv) Dim sql = … | |
I am need a little guidance here as to how I am to go about using a static method to read data from a text file. I know how to use a static method to write data to a text file, now I am wondering how to use a static … | |
Hi, I m trying to open a file in read mode , my program is below ... #!/usr/bin/python print "------" file = open("C:\Lakhan\Pytonpro\file.txt", "r") print file file.close() but it shows following error ------ Traceback (innermost last): File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 165, in RunScript exec f in __main__.__dict__ File "C:\Documents and … | |
Hello, I was hoping that someone might be able to help me with this program: [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.FileNotFoundException; public class CustomerInfo extends JFrame implements ActionListener { //construct components JTextPane textPane = new JTextPane(); //initialize data in … | |
Hi I have been working on a project that requires me to be able to search a file for all occurrences of a string and store the entire line that contains a single occurrence of that string a an array of characters. For example: Search: web File: Time James [U]Web[/U]ster … | |
Hi all, I have written a C++ code that reads data (as double) from a huge binary file with size 2.5 GB, then process the data and write it to another binary file. What is really strange, the code works fine and smooth in Borland C Builder 6, but since … | |
I'm trying to read a Unicode file using std::wifstream. On wintel. [code=c++] #include <iostream> #include <fstream> #include <string> using namespace std; int main() { wifstream File("input.txt"); wstring Line; while(!File.eof() ) { getline(File, Line); wcout << Line << endl; } system("pause"); return 0; } [/code] And this is my output [code] … |
The End.