7,373 Topics
![]() | |
I have a few ( slightly related ) questions about binary i/o in C++, I can't seem to find full answers to these anywhere.. - Is there any way to tell if an i/ostream passed to a function has been opened in binary or text mode? - If not, are … | |
Hi, I need help with the server location my file path for the text file order.txt. according to my php text book, this is what they say I should use: @ $fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt", 'rb'); however, this didn't work the server doesn't recognize where the file is located. This line … | |
Hi, i am having a vb6 program on a local lan server in my company. Recently i did an enhancement to the vb6 program. The program is able write into a blank excel sheet located in the application path. It work fine previously without any problem. After the enhancement, the … | |
I have two files, an application file and a class file. While they both run without errors, the application file returns a null when I run it. Here are the two parts that dont seem to work? Can someone tell me waht I am doing wrong? App file code: Invoice … | |
VB6.0: Writing an argument to see if an Excel file is already opened before opening the Excel file, because if the file is already opened the Excel file opens as read only. If it's already open I want to skip to the next "goto" label (ie: "File Already Opened"). Thanks, … | |
[B][/B]Hi, I am using cruise control on Windows XP. We have CVS as our version control tool. I am using the following four files to achieve build of my code. 1. config.xml (This file is present in cruise control directory and it calls up the file 'tc-build.xml'.) 2. tc-build.xml (This … | |
We have got a good way to upload a file in struts framework, using enctype="multipart/form-data" and using tag html:file. But in one of my applications I need to use a PNG image for the functionality of html:file. The reason is, I cannot make the textbox of html:file readonly. The user … | |
Hi I just started out with python.. I'm trying to write some code that will request a file with HTTP GET, be able to send custom headers to the remote host, download this file and save it locally, and show some kind of percentage downloaded which updates WHILE its downloading. … | |
Hi guys, I have completed one project and have created a setup file also. I have taken help from one of you guys and corrected a setup error, about "[B]DllSelfRegisterEx[/B]" to "DllSelfRegister". But now the problem is after complition of installation, i get the following error message during installation to … | |
hi sir, im a newbie in Java programming.. can u give me some tips or source.. that can read a file.. throughly and write to the file.. that can add more information to the .dat file when it adds or save more info to the existing file.. thanks a lot … | |
hi everyone i am new in php and i want to serch the specific words on text file using pregmach . i have try the patterns of the pregmatch() but it seems like i dont doit right. can someone look into my code and help me out with this problem. … | |
Right now I am learning how to use C++ programming on Linux. I just learned how to copy a file, now the question is, how can you tell if a file has been copied or not? I think I need a command or a function that allows me to check … | |
Hi I have a form where a user can enter a path name into a text box and I want to be able to check if the path name is valid. By valid I mean contains the right syntax. Is there a way to accomplish this in vb6. Thanks in … | |
I'm searching for a better way for this : I have several maps to display so I use a GPX file per map of course and also one HTML file per map; the HTML file invokes a .js routine which displays the GPX in google Maps. The "issue" is that … | |
I have Mac OS X 10.5.4. I seem to have trouble downloading a trial version of Photoshop from the Adobe site. First off all, when I download it, two icons come up on the desktop. One is in .dmg file and the other is .dmg.part file. When I try to … | |
Friends, I want to read content of a file in one of the xml files, can any please tell me how do i do that Thanks | |
![]() | I'm trying to process a text file saved in the directory below where the PHP script is running. First, it lists all of the files in the directory, skipping over . and .. Finally, it attempts to get a file handle for each file one at a time and then … ![]() |
Hello Please help me with the following: i am trying to open a file with a specific application using java. I am working on a desktop application. The following code using java.awt.Desktop works for known extension types,but when trying to open a file with an unknown extension it throws an … | |
Hi, Can anyone help me with this.. I have a vb program that produce a pdf file. I have installed the exe file in citrix metaframe server so all user can access. The problem that i've encountered is the printing from the user's pc was slow because it need to … | |
Hi I have a program i was writing to solidify my knowledge of files and how to handle them. I seem to have hit a snag though. What the program does is create files based on a user inputted date and allows them to add content to the files (kind … | |
I'm sorry for my ignorance, but I'm fairly new to PHP, so let me explain what I'm trying to do. I'm using a CSV file as my data source, which isn't a problem, I can read/write fine. I'm using this code to create a table from the CSV file: [code] … | |
I am trying to make my script install a config file with the right settings so the it can be used by anyone. Here is the file that will create the config file: [CODE=language] <?php $dbhost = $_POST["dbhost"]; $dbuser = $_POST["dbuser"]; $dbpass = $_POST["dbpass"]; $dbname = $_POST["dbname"]; $location = $_POST["location"]; … | |
Hi, I have a routine which reads a file using type='file'. I would like to be able to update the file and save it in the same location it came from, which would be in the C:\ directory. However, I cannot see how to get hold of the path associated … | |
I have a program due shortly and I can't get this to work. I have many errors that show up and can't figure them out. Can I get some help to get me on the correct path. [code=c++] // This program shows a structure with two nested structure members. #include … | |
The code .. modifies a files from line 56 to 66 if it finds a 0 and if it finds a 1 it doesnt do any change in file . I m reading 0 and 1 from ms acess database file and for each 0 or 1 in a particular … | |
Hi frnds, I have built an information maintenance system where files can be uploaded. Anyone can view those files. But, the problem is when a file is viewed in the browser at that time if someone just copy the URL in some text file after that any body from any … ![]() | |
I know how to open an Excel file with VB but I need help with writing an argument to see if the file is already opened, because if the file is already opened the Excel file opens as read only. If it's already open I want to skip to the … | |
Hello, all: I thought I could convert a basic upload script into a MULTIPLE file upload by simply adding a FOREACH loop to it, but doesnt seem to do it. Not sure if I am setting it up correctly. It looks like it does recognize the array since it does … | |
Hi there, I want to read 1 byte of information, in the form of an array of unsigned chars [1], from a file. I then want to use this piece of data to act as a secret key for a message authentication code I will be performing. The key will … | |
[COLOR="Green"]downloaded file show only 0byte nothing in download file............... this file uploading codes... [/COLOR] [COLOR="Red"]Code:fileload.html[/COLOR] [code]<html> <head> </head> <body> <center> <form method=post action="loadfile.php" ENCTYPE="multipart/form-data"> <h4>Enter the Following Details</h4> <table border=1> <tr> <td> Enter FolderName</td><td><input type="text" name="fname"> </td> </tr> <tr> <td> Title</td><td><select name=title> <option value ="resume">resume</option> <option value ="resume1">resume1</option> <option value … | |
O.K. I wrote my own version of the Addiction Solitaire game using a JFrame and it worked. I want to put it on the web, so I'm converting it to a JApplet. I have 52 PNG files, one for each card, that I need to be able to access for … | |
Hello, Finally I am down to the last issue with my program: text file writing and reading. My file has a function whose ofstream object does work and produces a text file for printing called "print". This function is the printTextFile(fstream &readFromFile ) function. But initially it is supposed to … | |
hey guys just joined the forum and so far it looks very promising :D got a quick question for everyone that can help, i am trying to organize a txt file to output the "gpa" from highest to lowest. Now this is what i have so far... [code]#include <iostream> #include … | |
Hey, This a bit of a lengthy problem to explain, please bear with me. My goal: Read in a data file (written in ASCII) and convert it to a smaller format (such as binary) The Problem: I start off with a proprietary format called Heim RawData. I currently don't have … | |
Hey guys, I'm parsing this WaveFront .obj file, still (for those that have read the previous post), but it has some really weird error in it that I haven't seen in a program before. The parsing algorithm starts out like this: [code]Open the file in textmode. Get filesize Allocate buffer … | |
Hey Guys, I was hoping someone could tell me how to run server side code to process a file? Basically, I want users to upload a file to my site, and once the file is uploaded, I want server side code (I'm thinking PHP) to process the file. Also, I … | |
Help, I still cannot understand why the following function will not write the change to my program correctly. For my other functions (add a record and delete record, it wrote all the records perfectly to the file, but for some reason when I go to update a record it does … | |
I have a video clip my son created that I want to email to others. It is 12mb and thus to large to email as is. I attempted to send the file to a compressed file via the windows xp option (ie. right click, send to compressed file). It created … | |
hello, Attempting to connect HSQL db by calling a config file from a java command line. However, receiving the following error message: Failed to retrieve connection info for database 'personal': Please set up authentication file 'C:\Documents and Settings\user\sqltool.rc' Here's a sample of the command: [CODE] java -jar \pathto\hsqldb.jar personal /pathto/Export_Data.sql … | |
Hai all, I want to get to know about the file summary like last saved by, last printed on, authour etc... How can get it using file info function. Thanks in advance. | |
Hello, I need help to try and figure out why one of my functions does not write to the file. I have 4 functions (below) and all of them write to the file except the updateRecord function. I know this is the case because I keep checking the .dat file … | |
I am not sure how to prevent the padded characters within a string array from printing. The user inputs the information in function enterRecords() and then prints in outputLine(ostream &output, const Tools &record ) function. I am having issues with outputline when I try to print to screen and then … | |
Hello guys! I am working with an PHP page that will generate an excel file. The flow is all transaction made should be generated in an excel file. Also if there is another transation, the new information will be appended in the same excel file. I have work on this … | |
hi , Can someone help me with a program if possible .. I have similar files with file name like prog1.in , prog2.in .... progr100.in which has some 47 rows of data in a txt format (almost same files ). I have another file name file1.txt having 100 rows just … | |
Hello any one tell me how do i create the program for upload to server. plz any give some idea abt that which commend is ur for uploading file to server in which way can i handle that | |
Hi there, am new to php and i have been trying to upload files from a form to a location on a server ( folder "uploads" on the server), the syntax and everything i am using is right cos i tried using just a form but when ever i use … | |
I'm having trouble with creating a function that would generate a random word from a list of four-Letter words from a file called fiveLetterWords.txt. I know how to generate the list and print it but I can't seem to get the random part right. I have attached the fiveLetterWords.txt file … | |
I use VC++ 6.0 1) This small program simply reads infomation from file “in.txt” and write it in file “out.txt”. (copy contents from this file to another) 2) It doesn’t work. The compiler issues an execution-time error. And the ouput text file “out.txt” is empty. 3) I don’t know why … | |
[code][COLOR="Green"]Public cnName As Connection Public rsId As Recordset Private Sub cmdImport_Click() Dim a(50) As String Dim ProductID(50) As String Dim i As Integer i = 0 cdbOpenFile.Filter = "Text Files (*.txt)|*.txt| " 'Specify default file name to open cdbOpenFile.FileName = "" ' Specify default filter to *.txt cdbOpenFile.FilterIndex = 1 … | |
New to VB 2008, I was discouraged to Google results that said, "printing is not easy in VB," and found only baffling examples I could not understand until I found and tweaked this simple example. Here is how to create a simple "Hello, world." to the printer. First, on the … |
The End.