7,373 Topics

Member Avatar for
Member Avatar for MattEvans

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 …

Member Avatar for MattEvans
0
192
Member Avatar for Tootlol

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 …

Member Avatar for somedude3488
0
143
Member Avatar for Derice

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 …

0
44
Member Avatar for rcoleman

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 …

Member Avatar for rcoleman
0
253
Member Avatar for snurd

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

Member Avatar for aktharshaik
0
397
Member Avatar for gaurav_chhabra

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

0
64
Member Avatar for adityam4444

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 …

0
61
Member Avatar for ohyeah

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

Member Avatar for EAnder
0
488
Member Avatar for chanthung

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 …

Member Avatar for gsatya
0
373
Member Avatar for rapperhuj

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 …

Member Avatar for peter_budo
0
102
Member Avatar for cosby

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

Member Avatar for cosby
0
112
Member Avatar for pipisumthin

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 …

Member Avatar for WaltP
0
258
Member Avatar for SHAWTY721

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 …

Member Avatar for Jx_Man
0
384
Member Avatar for Herve

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 …

Member Avatar for MidiMagic
0
103
Member Avatar for mssmith

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 …

Member Avatar for ZakAdelman
-1
231
Member Avatar for sangham

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

0
60
Member Avatar for Dukane

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 …

Member Avatar for Dukane
0
1K
Member Avatar for linu

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 …

Member Avatar for linu
0
217
Member Avatar for CaptainCharisma

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 …

Member Avatar for gsatya
0
83
Member Avatar for waldchr

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 …

Member Avatar for waldchr
0
120
Member Avatar for mindfrost82

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

Member Avatar for mindfrost82
0
2K
Member Avatar for blood08

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

Member Avatar for digital-ether
0
118
Member Avatar for davewylie

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 …

Member Avatar for davewylie
0
153
Member Avatar for Ccrobinson001

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 …

Member Avatar for Ccrobinson001
0
4K
Member Avatar for prog77

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 …

0
91
Member Avatar for nil_gh_80

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 …

Member Avatar for langsor
0
184
Member Avatar for snurd

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 …

Member Avatar for snurd
0
116
Member Avatar for websurfer

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 …

Member Avatar for pritaeas
0
218
Member Avatar for adamj2

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 …

Member Avatar for ArkM
0
177
Member Avatar for psathish2

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

0
113
Member Avatar for VernonDozier

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 …

Member Avatar for VernonDozier
0
228
Member Avatar for QuantNeeds

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 …

Member Avatar for Ancient Dragon
0
321
Member Avatar for jhonnyboy

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 …

Member Avatar for jhonnyboy
0
129
Member Avatar for acchao

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 …

Member Avatar for Adak
0
241
Member Avatar for Clockowl

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 …

Member Avatar for Prabakar
0
383
Member Avatar for 2eXtreme

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 …

Member Avatar for lordspace
0
125
Member Avatar for QuantNeeds

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 …

Member Avatar for ArkM
0
71
Member Avatar for karica

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 …

Member Avatar for karica
0
168
Member Avatar for wrappingduke

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 …

Member Avatar for Ezzaral
0
165
Member Avatar for Pgmer

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.

Member Avatar for Pgmer
0
97
Member Avatar for QuantNeeds

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 …

Member Avatar for Agni
0
160
Member Avatar for QuantNeeds

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 …

Member Avatar for Ancient Dragon
0
217
Member Avatar for dudegio

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 …

Member Avatar for buddylee17
0
280
Member Avatar for prog77

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 …

Member Avatar for VernonDozier
0
91
Member Avatar for kumarprabu

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

Member Avatar for nitinmukesh
0
124
Member Avatar for ibrahimssani

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 …

Member Avatar for ibrahimssani
0
450
Member Avatar for Mazille

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 …

Member Avatar for Mazille
0
2K
Member Avatar for Emerald214

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 …

Member Avatar for Emerald214
0
133
Member Avatar for vbgirl

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

Member Avatar for vbgirl
0
139
Member Avatar for Bill Purkins

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 …

Member Avatar for leveena
0
197

The End.