7,373 Topics

Member Avatar for
Member Avatar for mcco1

I have a text file, for example: [code]This Is A Text File[/code] This file is on some host. Now I want to get the file to my program, my problem here is, that I found how to save the file(download) but that's not what I need.. I need it to …

Member Avatar for zautner
0
122
Member Avatar for nagarayan

Need help guys! my problem is i cannot store file data into an array of structures. I can already read the file data and also tokenized it so as to separate data. here is content of the file that i am reading: 200001, hamburger, 30.50 100000, cheeseburger, 21.00 the name …

Member Avatar for nagarayan
0
2K
Member Avatar for arunkumars

Hi ppl, just wanted to knw if v can specify the file types tat our client can access when he clicks the browsebutton. i could find fileaccess, filemodes n stuff, but cudnt find the file type specyfying stuff... for example, if the user clicks the browse button, he/she wil get …

Member Avatar for arunkumars
0
89
Member Avatar for zenix

Hi, I am trying to learn php and when I feel i understand a concept I like to try it out by writing a script or 2. I am currently attempting to create an image on the fly, like a button. I keep receiving the message: Warning: imagecreatefrompng(red-button.png) [function.imagecreatefrompng]: failed …

Member Avatar for zenix
0
847
Member Avatar for mohankumar554

hi.. i developed a web application using asp.net2005 in windows xp professional,database is sql server2000.. i have to run the application in another system.. so i used deployment to run the application in another windows system.. after deployment i got a setup file with "msi" extension. i installed this "msi" …

Member Avatar for Ramesh S
0
235
Member Avatar for laghaterohan

Hello friends, Below is the code to unzip a zip file . However , problem occurs when there is a zip file within that zip file...please tell me how to do that? ie..unzip a file withing a zip file too...?? [CODE] private void btnok_Click(object sender, EventArgs e) { FastZip zp …

Member Avatar for laghaterohan
0
184
Member Avatar for naeem1973

[code]void my_Func(char source_file[1024] , char dest_file[1024] , unsigned int Exp , unsigned long Mod) { FILE *in, *out; int counter; int Ret; in = fopen(source_file ,"rb"); if(in == NULL ) { cout << "OOps! Source file "<<source_file<<" non-existing or corrupt file\n"; return; } out = fopen(dest_file ,"wb"); if( out == …

Member Avatar for Nick Evan
0
187
Member Avatar for atrophiedsoul

Ok so basically I am creating a ftp loop, that takes dynamic inputs from a previous page (all variables should be present, but naturally may not be formatted correctly... or i wouldnt be posting) So.. I can get it to loop through a connection just fine, but I seem to …

Member Avatar for atrophiedsoul
0
128
Member Avatar for lost_scotsman

Hello all, I have what at first glance seems like a very simple problem but I have been getting bogged down with it for the last few days now and would appreciate some help. I have a series of text files to read in, and wish to convert them to …

Member Avatar for lost_scotsman
3
982
Member Avatar for sixtus

Hi - I need some help. I have upgrated my server, webserver, ... to windows 2008, IIS 7.0 and ASP.NET 3.5. That gives me some problems. I have a page where people can upload and download documents. Upload works fine but download doesn't work. The documents is downloaded by using …

Member Avatar for sixtus
0
103
Member Avatar for leviathan185

Hi, I am trying to write an upload script and everytime i try and upload a file it will give me an error. Warning: move_uploaded_file(/home/******/public_html/dw/uploads) [function.move-uploaded-file]: failed to open stream: Is a directory in /home/******/public_html/dw/upload2.php on line 3 I have checked that the folder is there as the error suggests …

Member Avatar for leviathan185
0
176
Member Avatar for kevintse

As I emphasize *piece by piece* in the question, I have to read the ANSI file piece by piece to conserve resources, say 40 kilobytes for each read. Now I am handling an ANSI file that contains Chinese characters (encoded using the GBK charset, two bytes for each Chinese character …

Member Avatar for Ancient Dragon
0
139
Member Avatar for xuexue

hi guys! this is my problem, let's say the user wants to edit the file's information, not the file itself. example, i have Document1.doc, that is my file, what i want is that the user could edit the information, let's say the time it was uploaded, the filename and not …

Member Avatar for xuexue
0
1K
Member Avatar for xuexue

hi guys, i already have a working upload.php, now the problem is that the file cannot accept pdf files? but other than that, it works very well, what do you think should i do with this? [code] echo"<form enctype='multipart/form-data' action='fileRecs.php' method='POST'>"; echo "<input type='hidden' name='MAX_FILE_SIZE' value =1000000/>"; echo "Choose a …

Member Avatar for xuexue
0
79
Member Avatar for xiikryssiix

okay, i usually create beg programs and they often compile. for some reason, this one is not compiling at all. i cant seem to figure out whats wrong. my objective is to prompt user to open a file named "data.txt" have HELLO WORLD printed in a scrambled version to a …

Member Avatar for iamthwee
0
207
Member Avatar for xuexue

i can already the upload and download files, the thing is that i want to access the folder "uploads" because all the uploaded files are in here, the thing is that when i'm using this one, it works when the uploaded files are merged with my php files, the problem …

0
86
Member Avatar for flair999

Hi ancient dragon. i need to extract specific words from 2 different point (directors and writers in a text file), like delimiters example of the text file below: i want [B]alex proyas[/B] to be extracted. words........ [B]DIRECTOR:[/B] alex proyas [B]Writers[/B]:...... this case is quite similar to the one above, but.... …

Member Avatar for Salem
0
90
Member Avatar for lotrsimp12345

why do i get undefined reference to error in my main with regards to isvalidname. It says undefined reference to... in my isvalidname i check if they enter in first name, char ws and then last name. Then i want to print out everything that i have deleted on that …

Member Avatar for lotrsimp12345
0
122
Member Avatar for shahbaz5144842

hi all there ! I have problem with java file object that when ever i want to delete a file from the server i have check whether its exist or not for this i get fileObject.getAbsolute path but it return me wrong path but i get path from db a …

Member Avatar for ~s.o.s~
0
181
Member Avatar for colmcy1

Hey all, I am trying to check if a .exe file is open, if it is open bring it to foreground, if it is not open open .exe file and bring to foreground. The code I have written doesnt seem to recognise if the program is open or not as …

Member Avatar for colmcy1
0
2K
Member Avatar for chiotti

I need to read in a list of adjacency matrices from a text file. I can get it to read in and write out when there is only one matrix in the file, but can't seem to get it to read through more than one. Once I tack another file …

Member Avatar for masijade
0
2K
Member Avatar for SoulMazer

Hi, I am writing a script that aims to help a person keep a list of characters while reading a book. In doing this, I am writing to a file and checking it constantly, except I ran into a problem. Say I executed a code block such as the following: …

Member Avatar for SoulMazer
0
1K
Member Avatar for rciprogrammer

How do I 'restore' my output (stdout) back to the terminal after redirecting it to a file. I want to be able to output to a file for a specific section of code, then close that file and put output back to the screen/terminal. [code=c++] fprintf(stdout, "This will go to …

Member Avatar for rciprogrammer
0
6K
Member Avatar for tdeck

As far as I can tell, this method is returning a blank line every other line, but I can't figure out why: [CODE] public static List<string> plain(string path, int num) { List<string> result = new List<string>(); StreamReader reader = File.OpenText(path); string line; int i = 0; while ((line = reader.ReadLine()) …

Member Avatar for lighthead
0
160
Member Avatar for sandra21

i am a newbie flash designer. a client has asked me to make modifications in a flash file used on his website. it is flash 8 actionscript. i am currently working on the same and would appreciate your help. the client has given me 'proprietorytools.swf' file which i decompiled using …

Member Avatar for sandra21
0
117
Member Avatar for mrestrepo30

Hi! I'm just starting to code in C, and I'm trying to read the information in a dat file, to then use it in some calculations. I read the information in the file and then save it in an array. However when I try later to access that array I …

Member Avatar for Dream2code
0
149
Member Avatar for Cardboard Box

Hi I was programming a 2D scroller game in VB.net, but am having problems with collision. I spent ages thinking how to program collision into my program, but haven’t gotten a good result yet. Basically, my game takes numbers from a notepad file and draws tiles on the screen based …

Member Avatar for Cardboard Box
0
103
Member Avatar for ankit007

i am developing an application where i have to break a stream of numbers which are in .txt file and save it into access database.I need to know how to do this in visual basic.I have created a database at runtime and also created table with required fields but am …

Member Avatar for sknake
0
88
Member Avatar for tazboy

Here is what I have: [CODE]} else if ( argc > 1 ){ for ( int arg = 1; arg < argc; ++arg ){ infile.open( argv[arg] ); if ( infile ){ list = read_file( &infile, &lines ); } } } [/CODE] argv[1] = text.txt gets opened, but argv[2] = text2.txt …

Member Avatar for tazboy
0
145
Member Avatar for xnoiz

Since i am a Ph.D student in material science, i have no previous experience in programming, and for 1 week now i am trying to write a simple program...where i can use some help from you. I have written a program that can read every line in a txt file …

Member Avatar for tux4life
0
173
Member Avatar for gotm

ok so i want to read a .txt file line by line. I have the code for that BUT i want to keep track of what line im on, i might be completely braindead from working on this whole project forever but heres the line by line code i am …

Member Avatar for oliver_lundag
0
361
Member Avatar for oliver_lundag

/* *It's a Running program that generates DBF file *Question is: How can I make an IDX file Out of this. *I tried to changed the extension by .idx but I'm not sure if it is *correct. */ package src.maintenance.DBFextraction; import java.awt.Dimension; import java.awt.Font; import java.awt.Point; import java.awt.Rectangle; import java.awt.Robot; …

0
182
Member Avatar for sarithak

Hi frnds... Here i am going to uploading image from my system to ftp.. the below code works correctly in localhost...But, when i use FTP ,it doesnt work..it display error. [CODE] Warning: move_uploaded_file(photos/Endeavour123.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in..... Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'c:\WINDOWS\Temp\php4DA.tmp' to '..' …

Member Avatar for sarithak
0
107
Member Avatar for Web_Sailor

I was trying to read a file and print it to the JTextArea in other class. My program complies but its not printing the file content in JTextArea. Here is my MouselIstener Code [CODE]class MySaveMouseListener extends MouseAdapter { MyClass1 myobj = new MyClass1(); public javax.swing.JTextField myjtext = myobj.getTextField(); public String …

Member Avatar for JamesCherrill
0
148
Member Avatar for alsoumhi

Hi all , I have a servlet program, this program will get a user name and password from a web page. I need to check the user name and passsword entered by user with a data file has all user names and passwords. the thing is I know how to …

Member Avatar for alsoumhi
0
89
Member Avatar for hurricanezj

I've written a socket server in Matlab and also a client program in Python.Both can be run properly respectively.The purpose is to send signals from Matlab to Python.But the problem is that they can never be connected to each other even though I use the same the host and port …

Member Avatar for woooee
0
233
Member Avatar for nattsurf123

Hi, I'm trying to insert vba code in a word .docm file through vbaProject.bin. I'm planning to use C# for this task. The part to change it to zip or use the System.IO.Packaging to open up the file doesn't seam to be a problem. Through this tutorial: [url]http://www.codeproject.com/KB/cs/office2007bin.aspx?fid=333613&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2005497[/url] I understand …

0
83
Member Avatar for vickdini

Hi! I'm trying to search a binary file for some hex values and then replace them, using C++ CLR. Reading and writing the file works, but I just haven't found a way to search and replace successfully. Here is the relevant code I've created: [CODE] array<Byte>^ fileContents = File::ReadAllBytes(item); textBox2->Text …

Member Avatar for Ancient Dragon
0
832
Member Avatar for Nigel 50

I’m trying to recover .jpg and mvi files that were deleted from my hard drive a while ago. They were created from about November 2006 to November 2007. They will be in sub-folders within a specific folder in the root drive. The hard drive is a Samsung SP1644N - capacity …

Member Avatar for gerbil
0
143
Member Avatar for makdu

Hi everyone. I am trying to use MScomm in vb6 throught Modem. There are two computers , both are connected through dial up modem. I want to send a file from first computer to the other. First Computer dials second computer to make connection. I am able to get a …

0
174
Member Avatar for doublebond

Hi all, I have a problem with my code. Please help me. I am trying to create multiple files based on the input file and read its respective data only. Thread_id: 1 Data_block_size: 64 Request_commmand_type: ReadReq Packet_block_Address: 8184256 PC_value: 4831838656 Tick_of_the_data: 14000 Packet_transfers_through_Bus_name: system.toL2Bus Is_Instruction: 0 Is_Data: 0 Data_Read: 0 …

Member Avatar for Ancient Dragon
0
489
Member Avatar for lblazer05

Hello guys, I am new around here. Anyways, I am having a problem with reading some information from a text file. Sample text file: density = -1.0 number = 2004 Ok so what do I use in order to get the number -1.0 from the text file? Also, what if …

Member Avatar for Ene Uran
0
141
Member Avatar for dumdumsareyum

I wrote this program back in high school 10 years ago and I found it today. I'm getting back into programming and I'd like to get it working again, some of the headers are deprecated which I tried to fix, and I was using borland c++ and now have Dev …

Member Avatar for Salem
0
150
Member Avatar for Web_Sailor

Hi, I am trying to create a HTTP file upload setup for a java application. So I have got a File Upload server which is working and a Client (I am not sure what changes I should do to make my Client code work with the server code) NEED HELP …

0
68
Member Avatar for dinilkarun

Hi All, I am using the below code to write into a text file [CODE] # Write into log file inp=file(Doc\Log.txt, 'w') inp.write('Log file start') inp.close()[/CODE] The text file 'Log.txt' is present in 'Doc' folder inside the application folder. Now I want to create a text file with a time …

Member Avatar for baki100
0
164
Member Avatar for Zetlin

Ok so for the last couple of days I have been struggling with file handling. Here is my problem I create a new file and write some text into it. Then I open it again to add more text to it but somehow the new text is being written in …

Member Avatar for Zetlin
0
249
Member Avatar for anilopo

i've wrote a code that read and write to some files, and i have a segmentation fault when i'm running it in the g++ (in the visual studio i don't have any problem like that..) anyway, i think the fault may come from this line, can anyone tell me if …

Member Avatar for anilopo
0
87
Member Avatar for Michael_Tanner

Hello, I happen to be a novice in the realm of C++, and I'm currently confused due to this error when trying to run my application: "Assertion Failed. Expression 'stream != NULL' ". I've looked it up, and nothing that comes up can answer why it gives me said error. …

Member Avatar for Michael_Tanner
0
2K
Member Avatar for bobjonson4

Hi All, Got a bit of a problem. I have a COM Component for an ASP project that reads a binary file from a location on the HDD (could be from 60MB-200MB) and, with the response object found in ASP.DLL, sends the file in chunks of 96kb. The aim was …

0
43
Member Avatar for cplusplusfool

Hii Friends, I do not know how to use FILE for writing data. I have tried something but i missed something to write and i do not know what to write now to get data inside file. Help me plz. Regards, Shivi circle.cc [code=cplusplus] #include <iostream> #include "circle.h" using namespace …

Member Avatar for csurfer
0
148

The End.