6,015 Topics

Member Avatar for
Member Avatar for msgeek

I want to download Image file from web using c++ and save it in specified folder. How to do it?... please help me.

Member Avatar for kooia
0
107
Member Avatar for bokz06

i think i have converted my application to an applet..... it use to read lines from a .txt file i have on my hard drive but now i want it to read a .txt file from a URL: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.JButton.*; import javax.swing.event.ListSelectionEvent; import java.net.*; import java.io.*; …

Member Avatar for HoRn
0
171
Member Avatar for edek
Member Avatar for Freaky_Chris
0
468
Member Avatar for amitshrivas

Hello to all..plz help me in this plzzzzzzzzzzzzz i want to view/download a files from production server and after downloading i want to delete the same file from 2 places i.e from (database and one Uploaded folder in server). i have 2 quries: 1: View Only ? i have this …

0
92
Member Avatar for priyankapandey

[QUOTE]Hi all... can anyone explain how i can read from a config file and retrieve its value in a cpp file... I am writing down the cfg file...[/QUOTE] [CODE]<APM> [APM_SAYHELLO] Formatter.Type = String Formatter.Val = AtlLogPlainTextFormatter Filter.Type = String Filter.Val = LEVEL_DDEBUG ComponentLevelFilter.Type = String ComponentLevelFilter.Val = true ComponentsEnabled.Type = …

Member Avatar for priyankapandey
0
307
Member Avatar for tinkeydo

The following is an excerpt from a complete program that runs without any errors. It has 2 file dependencies which it uses to access and store information. The program, in its entirety, displays a menu with 5 options the user can choose from. [LIST=1] [*]View Characters [*]View Items [*]Add Character …

Member Avatar for tinkeydo
0
303
Member Avatar for dilbert_here00

Hi all, I am trying to open an excel file which is in the same folder as my python script. The script is able to open the file first time, & after that it just throws the following exception: pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, u'Microsoft Office Excel', u"'test .xls' could …

0
74
Member Avatar for Pooja J.

Hello to all, Please tell me the error from the following code. When I choose a file from 'file' field, then it update the image, but when I dont choose a file. It doesn't keep the same image, i.e. the image get disappear. What is the problem in my 'If.....else …

Member Avatar for Pooja J.
0
110
Member Avatar for YeMiller

Hi, I've had a quick look through this forum and can't really see anything to help. I've got a basic but fair knowldge of C++ but I'm unfortunately not very good at putting my knowledge into raw code :D. I'm currently doing an assignment to read data from one of …

Member Avatar for WaltP
0
145
Member Avatar for fishguts

In the code below I am opening a .txt file to count the characters in it. I am assuming that the user does enter a .txt file, but how can I go in checking that the file is truly a .txt. I was thinking of using a java function to …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for Lokeshmsit

Hi, I have a method in my application called "Save as" which Saves the image of my application on computer my into a file. I used the JFileChooser to let the users choose their desired location for saving the file. The problem is unless user explicitly types in the file …

Member Avatar for peter_budo
0
248
Member Avatar for saulocpp

Hi all. First post on the forum. I'm writing a generic funtion to open files along my program, but am worried if the pointers are being closed correctly. The function definition: [code=c] FILE* openfile(char *FileName, char *Mode) { FILE *TempFile; if((TempFile = fopen(FileName, Modo)) == NULL) { fprintf(stderr, "Couldn't open …

Member Avatar for jephthah
0
192
Member Avatar for f0rd

Hi everybody, I'm trying to develop an application for personal use, that will just make my life at work a lot easier and save me from doing a repetitive process by hand, when I know it could be done with [B][I]relative [/I][/B] ease in C++. Anyway, I want to be …

Member Avatar for WaltP
0
283
Member Avatar for piers

Now I am using php and mysql so not sure if this should be in the php section. If you can help I would be most greatful. I am trying to create a search page so that it shows data and one of the columns in the mysql database contains …

Member Avatar for piers
0
111
Member Avatar for vivekmet

Hi, Anyone please help me on how to proceed for reading and writing file in j2me. If anyone can provide sample code then that will be very useful! Thank you!

Member Avatar for peter_budo
0
89
Member Avatar for Simes

[CODE=python]#Code should always be in a method or class #Always start variable names with lowercase, classes could be capital #input.upper() allows the user to use lower or upper case for each option import random def isint(x): try: int(x) return True except: return False print "Invalid guess. " def getGuessValidator(): while …

Member Avatar for Simes
0
410
Member Avatar for UberJoker

I am able to get the file names with current script. $dir = "var/www"; $dh = opendir($dir); while (($file = readdir($dh)) !== false) { echo "<A HREF=\"$file\">$file</A><BR>\n"; } but the www folder is local. i wanted to get the file names on my windows server which has the following address …

Member Avatar for sunsetrainbow
0
110
Member Avatar for catcit

Hello! I am in the 11th grade and I have started with one of my colleagues to work on a file compression program based on Huffman coding. I have previously worked with python (a program that handles some .xls files) but this project is more complicated so I shall need …

Member Avatar for jcao219
0
150
Member Avatar for MonteM

Hello Every one, I am having trouble finding my correct condition to not run off the end of my file. So i am reading from a file and then tokenizing my data accordingly. My file has 16 lines and using my size function i get 18 lines instead since i …

Member Avatar for Fbody
0
140
Member Avatar for charlieruns

To be honest...I am horrible at java. I just got a job and have missed class a few times because of it and im supposed to create a project that can read the number of lines, words, characters, average words length, and letters in a file. I am trying to …

Member Avatar for javatechgirl
0
1K
Member Avatar for Pooja J.

Hi to all, Here is my code, I want upload file which are only images. All images with jpg, JPG, jpeg, JPEG, gif are uploaded successfully except with bmp file. Plz, help me to find out the prob. why my code is fail with bmp extension file. [code] //file-detail-complex.php <?php …

Member Avatar for Pooja J.
0
816
Member Avatar for priyankapandey

Hi all... can anyone explain how i can read from a config file and retrieve its value in a cpp file... I am writing down the cfg file... <APM> [APM_SAYHELLO] Formatter.Type = String Formatter.Val = AtlLogPlainTextFormatter Filter.Type = String Filter.Val = LEVEL_DDEBUG ComponentLevelFilter.Type = String ComponentLevelFilter.Val = true ComponentsEnabled.Type = …

Member Avatar for phoenix911
0
169
Member Avatar for o0b3600

Hello, I found this website while I was trying to search a solution/ recipe for a problem I am trying to tackle... I am very new to python :( How can I run an executable file from a python script? for example: All the files (python script - filename.py-, executable …

Member Avatar for Gribouillis
0
276
Member Avatar for edicar

I Have the following skeleton c code, I want to be able to open the file for reading and write some of its contents to the screen. rather than being hard coded into the program, the name of the file to be opened and read will be given a command …

Member Avatar for Ancient Dragon
0
104
Member Avatar for davethebear10

I have to get three pieces of information from the files i have 1. The name of the owner of the file which appears after the pattern tag <foaf:name> 2. The ID of the owner of the file which is embedded in the filename, e.g., http%3A%2F%2Ftalk.ie%2Fvbulletin%2Ffoaf.php%3Fu%3D12 belongs to user 12. …

Member Avatar for woooee
0
253
Member Avatar for corby

hi in my drive file this is what my constructor looks like. im passing an array to it the constructor so that i can assign it to set[num]. what i want to know is what would this look like in the header file? drive-file: [CODE]IntegerSet::IntegerSet( int a[]) { for ( …

Member Avatar for Sodabread
0
209
Member Avatar for smeghead007

Ok I got the code to work but with some errors. First when i print out the aorted array to the file it is sorted escept for one number in the beginning second it gives me a negative number whihc i believe is a pointer how can i fix this? …

Member Avatar for VernonDozier
0
135
Member Avatar for colicab

ok, here's the thing, server 2003, i have 2 ISP's, 2 routers, router 1 with address 192.168.254.1 and the other router's address is 192.168.254. 254, and one DES 1024D switch. 14 computers connect to the first router and 10 computers connect to the other router. all workstations have static ip's …

Member Avatar for techsheaven
0
210
Member Avatar for rihanphys

i'm using matlab for image correlation. in my program i have to read 15 or 20 images one by one and correlate them with the 1st one, i.e. at first image2 will be correlated with image1, and then image3 will be correlated with image1, and then image4 will be correlated …

Member Avatar for jonsca
0
143
Member Avatar for abhay_tanu

Hi Through shell script we put a file on remote sever. After putting file on that server it goes into inbox folder and it appends a hash code to file name. So when getting back the same file from inbox folder it is giving me following error. [COLOR="Red"] /inbox/TESTFILE*: No …

Member Avatar for abhay_tanu
0
237
Member Avatar for kooldba

I have two text files which are similar but with different tags: File 1: [code] Ben|2 Jen|4 Harry|8 Bill|3 Jack|2 Jill|2 Rip|1 P|1 A|3 B|4 C|2 G|5 Tom|1 Harr|4 Red|4 Green|2 Red|3 Blue|4 Lent|4 Burrow|2 [/code] File 2: [code] Ben|2 Jen|5 Harry|2 Bill|4 Jack|3 Jill|6 Rip|1 P|2 A|19 B|0 C|1 …

Member Avatar for kooldba
0
281
Member Avatar for happygeek

With the annual Pwn2Own hacking event due to kick off tomorrow, Mozilla has confirmed that Firefox 3.6 has an unpatched critical vulnerability. The fact that Pwn2Own competitors will not be able to exploit this vulnerability to claim the Firefox hacking prize will be of no interest to the millions of …

Member Avatar for happygeek
0
500
Member Avatar for minimagician

Hi, the problem is that: I have a text file with some lines of text in it. I have to search for a particular line in the file and then copy the lines after the searched line into another text file. This search string comes only once in the text …

Member Avatar for rohini.vangury
0
7K
Member Avatar for tarheelfan_08

Ok guys, for my next assignment I have to read from a binary file and then print out my information. I will post the assignment and what I have so far. But my question is, do I create the binary file first in the program or by hand or what?? …

Member Avatar for tarheelfan_08
0
3K
Member Avatar for tcsarindam

Using different objects for input and output the above code is not working. Pls give suggestion ASAP. [code]#include<iostream> #include<fstream> #include<iomanip> using namespace std; class sample { int num; char name[20]; public: void read() { cout<<"\n enter name"; gets(name); cout<<"enter the number"; cin>>num; } void write() { cout<<"\n The name is"<<name<<endl; …

Member Avatar for Salem
-1
88
Member Avatar for archb

I want to give command line arguments to a file and then executive that python file from within my master python file. How should I go about this? I don't really care about the standard output. The file that I want to executive from with my file just outputs all …

Member Avatar for Tech B
0
207
Member Avatar for KevT

Hmm...I haven't had much luck using a combination of functions to get this working like file() etc. so I instead of boring you with unsuccessful code, I was wondering if anyone had thoughts on this? NEED Have a file I append IP's of visitors to a site. I want to …

Member Avatar for KevT
0
139
Member Avatar for itslucky

Dear Friends!!! I am developing a Hotel reservation Website (ASP .NET C#), and i need to send XML file to the server and then receive a XML Response File. Now i would like to Save the XML Response file to the clients Machine, not on the server, now plz tell …

Member Avatar for kvprajapati
0
98
Member Avatar for Darkicon

My app uses a verification method for users of downloading a text file which contains game-ID's of the users and checking the file with their game-ID. The problem is, the code I'm using to download it is kinda messing the file up. [CODE=VBNet] Public Sub GetIDList() Dim wr As HttpWebRequest …

Member Avatar for kvprajapati
0
150
Member Avatar for j.ross

hi guys! just wanted to share that I've just grabed a trial version of NTFS for Mac OS X 8.0 Release Candidate from Paragon....and starting to try this... it provides support of Mac OS 10.6 Snow Leopard in 64 bit mode! you can have it from their site.

Member Avatar for j.ross
0
290
Member Avatar for dondajr

Hi again. I have a file that have about 1000 lines, and then, time by time I need to read some of this lines, for example: 13:00:00 read lines 01 to 100; 13:30 read lines 101 to 400; .... 15:00:00 read lines 900 to 1000. There is a way to …

Member Avatar for dondajr
0
112
Member Avatar for amol14007

I have been trying searching the net, for source code for converting RTF file to text file in c/c++. The source that i get is in RTF file format which conatins is specific tag but i need to convert it to simple text file and upload it.. Any source link …

Member Avatar for amol14007
0
222
Member Avatar for bigt666

I've been working on this program and can't seem to understand how to print an output file of the calendar of July. Is there any help I can get? This is the code: [CODE]//---------------------------------------------------------------------- // // This lab exercise is to practice rand(), srand() and // output formating with help …

Member Avatar for WaltP
0
227
Member Avatar for jakewebb

Hi I am attempting to write a playlist for my media player which is already built. I have found a way to build a playlist for it but it would be helpful if I could save the contents of TextBox1 to a text file without using the save as. I …

Member Avatar for jakewebb
0
1K
Member Avatar for ubi_ct83

Hi all, My problem is regarding to my last post about argument. that is solved but it create a new problem. The last data in debug_file is not written in output file. I think its because of looping in the argument.How to solve this? [code] int main(int argc, char* argv[]) …

Member Avatar for ubi_ct83
0
117
Member Avatar for leftovas17

Here is the deal. I am writing a program in assembly that compresses and decompresses text based files. The user should be able to input a text file, and declare the name of what that file should be name when turned into a .drl file (just a random extension for …

Member Avatar for leftovas17
0
183
Member Avatar for steven2

The website is running on a web hosting where we don't have access on htaccess file.The web server is Apache. I want to rewrite URL. For example: The original URL: [url]www.mydomainname.com/en/piecework/piecework.php?piecework_id=11[/url] Expected URL:piecework.mydomainname.com/en/11 How to do it?

Member Avatar for steven2
0
82
Member Avatar for Icebone1000

Hi, Im trying to figure out(again) the best(fastest) way to handle file management..Im using Win32 api, so I always try to use the api routines(instead of the c++ ones), dont know if this is better, but I just feel it is better in this way.. ( On "windows internals" book, …

Member Avatar for Ancient Dragon
0
257
Member Avatar for Dizzzy

Here is my code to write the arraylist to .dat file, And im not sure if its working but it writes to the file and i can see all the random characters so it is writing something but i keep getting io errors when i try to use the method. …

Member Avatar for BestJewSinceJC
0
156
Member Avatar for larrywjr

Hi, I am new to Python. I have written a routine and am trying to compile the code for distribution. I went to [URL="http://sourceforge.net/projects/py2exe/files/"]http://sourceforge.net/projects/py2exe/files/[/URL] and downloaded the file py2exe-0.6.9.win32-py2.6.exe. I am running Python 2.6 on a Win-XP Pro OS. I assume this file is a self-extracting exe. The trouble is …

Member Avatar for jcao219
0
245

The End.