7,373 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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" … | |
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 … | |
[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 == … | |
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 … | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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.... … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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()) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
/* *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; … | |
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 '..' … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … |
The End.