7,373 Topics
![]() | |
Can anyone help me with the code why it is wrong . What Should i need to do to correct. Thank for your help . Pls help me [code=php]if (is_uploaded_file($fileatt3)) { $file = fopen($fileatt3,'rb'); $data = fread($file,filesize($fileatt3)); fclose($file); $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $data = chunk_split(base64_encode($data)); $body .= "--{$mime_boundary}\n" … ![]() | |
Hi, I am a newbie to C++ and want to know how to parse thru a binary file. I am having some trouble with some simple code. I have a sample binary file(test.bdb) that has "0069 0045 0089 0090" in the file. Here is my code for the file. [code] … | |
I have the following code for reading an online file, somehow the first line returns an empty string, what can be the reason for this? Dim myRequest As WebRequest = webRequest.Create(myurl) myRequest.Proxy = WebRequest.DefaultWebProxy Dim mystream As Stream = myRequest.GetResponse.GetResponseStream() Dim objReader As New StreamReader(mystream) Dim sLine As String = … | |
hi plz help. Trying since 1 week. acwl1 line we james line rx sijith fff xw nisha nnn w /sijith line r /Arjun line w vineeth line r acls2 faculty x arrr line2 w Rahul line3 wx Arjun line1 m /Tom line wr ac01l2 lineN w aclM1 line1 rw Ram … | |
Hi PHP community. I have a PHP script on Linux (CentOS 5.2) which produces a "failed to open stream: No such file or directory" which I am out of ideas on how to solve. I am on the verge of reverting to Perl. The line generating the code is: [icode]$fh2 … | |
I am using vb.net 2005 (express) and can't quite figure out how to do this. I have an application that reads in a bunch of data from a file into the appropriate variable arrays like I want. I used a simple solution that I found here on DaniWeb to read … | |
Hi, I'm trying to read data from a text file and store it into an array. I know this issue has been dealt with earlier, but none of those threads seem to be helpful in this case. Sorry in advance if I missed a relevant post. The data in the … | |
Hi all, I am trying to make a program in VB .NET that has two "browse" bottons, two textboxes which should show the full path of the files to be selected, one "Save As" button, one textbox that should show the file's full path where to be saved in, an … | |
1.) I want to stream Live Audio, and i have chosen JMF to do it, i am an absolute beginner to JMF, so can anyone help me by providing me with some easy to understand Source codes of a Live audio/video program, so that i could go through it and … | |
I had 1 exercise: read data form file then add into TREE. I read data in the file into an array, then add array into TREE, here is my solution but it does not work properly I know that data in array seq[] will be erased after ReadFile() function but … | |
hii Everybody Please help me to solve below problem i have been doing this for three days. Warning: main(includes/languages/.php): failed to open stream: No such file or directory in C:\www\cool\includes\application_top.php Any help will be deeply appreciated. | |
Hello, I'm trying to read dictionary words from a file and store the output in a struct element of type unsigned char *. I keep getting a bunch of memory related errors and segmentation faults which Im sure are totally related to me trying to access something that's not really … | |
I've been browsing the web for a while looking for an answer to this but I can't seem to find it. I created a .resx file in one of my DLL files that has a bunch of images stored on it. In this DLL I'm using an extended ImageManager (CustomImageManager) … | |
I am helping a friend fix her computer, she had some malware issues. I have CA Internet Suite on the computer because she doesn't believe in virus protection and I am the one who ends up dealing with the issues. The Computer is a Dell Inspiron 600m with Windows XP … | |
Hello I want to get response or content of a url..!!! [code=php] $url="http://203.142.18.33:4480/3030service/airtel.php?mobile=".$mobile."&msg=".$msg."&from=".$from; $file=file($url) ; print_r($file); [/code] but i got an error [function.file]: failed to open stream: HTTP request failed- Response of the file..!! with file_get_contents it showing same error..!! is there any method other to get the response..!! with … | |
Hi, guy I've created an animation (swf file) using AS3 and FlashDevelop. I'm able to compile and play it in FlashDevelop but when I open it in any browser (IE, Firefox, Chrome) I just see the background color and that's it. (I've flash player plugin installed on browsers). What my … | |
Hi, I was wondering if there is a nice way to have the System.Web.Cache in sync with a file. I'm looking to keep a mapping object (an array of objects with a couple of properties) in cache and also in a file. I want to get 2 things out of … | |
I want to read and write string from file, - Dont want to overwrite on the existing file - Where to put the read file code as in Constructor if file is not created then it will generate error. help me to solve this issue. [code=cplusplus] class Security{ private: Map<string>password; … | |
void openfile(char *,FILE**) what does double stars indicates | |
Hi guys, I have a problem. Im trying to read from a file which contains one, two, three, four. The output I get is one two three four But I want to make it read every other line. one three etc. How would I go about that? [CODE] import java.util.Scanner; … | |
I'm trying to read a file into a vector using structure...[CODE]#include <fstream> #include <iostream> #include <vector> #include <cstdlib> using namespace std; struct StudentRecord { int ID; char FirstName[30]; char LastName[30]; char Grade[1]; }; void read_file(char FileName[20],vector<StudentRecord> &students) { ifstream Students(FileName, ios::in); char S_ID[10]; /* char FName[30]; char LName[30]; char S_Grade[1];*/ … | |
how do i generate a .html file using java? i need 2 read from a file file and display an applet in a web browser. So i need to include the main() and cannot run an external .html file. Please help. | |
Hello, I am trying to embed a html file (a report from sql) in to a word document in a particular location. I am trying to get this done using the Office Interop. 1) How can I embed a html file in to a word document ? 2) How can … | |
Hi all, Yesterday i was working in which i need some application in which we can upload image file in our system. That is working very well. But now i want to upload a notepad text file or ms-word file from system to server. Means I want to upload a … | |
Hi all, With your help I have a perfectly working console application. Now I need to do it a bit more flexible. So far I have the file paths for all files involved in the applications execution hardcoded.I need to be able to execute the console application from anywhere. i.e … | |
Good morning, I am quite new at java and in the learning process. I have a log file with the following data contained in it: mai 4 03:26:53 pcjournal Dock[345]: Corrupt JPEG data: premature end of data segment mai 4 03:26:53 pcbookscuba [0x1-0xa01a].com.apple.dock[345]: Tue Jun 2 03:26:53 macbookscuba.local Dock[215] <Error>: … | |
Hi, I am developing one application in c#, where I have to manage file transfer between my applications. The applications can communicate sending strings to each other. The idea is to read file and put that in one string, which can be sent over the network using streams. Of course, … | |
Hi folks, I'm currently trying to send data from a client to a server. It is an xml file. The client has this code: [CODE] public void sendXML(XmlDocument xdoc) { try { //Using the network stream to send data NetworkStream nts = new NetworkStream(Network.m_clientSocket); xdoc.Save(nts); nts.Flush(); } catch { Connected … | |
I want to upload a file from c#.net app to a servlet. I am using webclient.UploadFile() and I have also added some data to the uri (see postData below). Everything seems to work ok except webclient seems to be calling the post and the get within the servlet. Therefore my … | |
![]() | I have a file, called 'html.html', which contains 'open_skype' in the first line and in the second line it contains the location of the file. Now, what I want to do is, make a function read the first line and then the second line should be read separately....if you don't … |
there are blanks in the question as the pro gramme need some codes and definitions to get completed. Please help me in completing this problem. than x in advance. [code=cplusplus] #include <iostream.h> #include <conio.h> #include <fstream.h> //---------------function prototypes----------------------------------------- int menu(); void screenHold(); void enter(); void report(); void save(); void load(); … | |
Hi... I've been trying to make a program where the input is txt file, and the output will be saved in txt file. But, I keep getting error Message. My code looks like this: [code] #include <stdlib.h> #include <stdio.h> int main (){ int i,j; float H [100][100]; FILE*in; in=fopen("0.txt","rt"); FILE*out; … | |
hello, I am working on a little database program in C++ that writes to a text file, saves, and then reads the text file into array's, but i'm not real sure how to go about converting the information in the text file back into arrays. the text file looks like … | |
Hi all I am new to programming and python and am having trouble reading particular strings from a text file and writing them out to a separate file. The file has a large number of lines, has the following format and is interspersed with signature sentences i don't need: subdoc="Book=2:chapter=1" … | |
Hi all, I just get stuck with this kind of simple problem. Such a novice i am. Could you help me guys.:$ I try to built the code and for the first procedure i should open first the file. The file which i should opened its depend on the input … | |
Hello. I have a MYSQL database and I receive CSV files throughout the day. At present I have to open up my database and import the CSV file. Is there a exe file that can run so the CSV file can be imported as and when it arrives on the … | |
I tried to write a program that can open files from the server. But the shared folder in the Win2003 server is password protected. i tried the following code [CODE]System.Diagnostics.Process.Start("net.exe", "use K: \\Server\URI\path\here /USER:username password" ) Dim p = New System.Diagnostics.Process p.Start("k:\" & Filename) System.Diagnostics.Process.Start("net.exe", "use /delete K:" )[/CODE] And … | |
I am taking a text file and trying to do calculations with it where the line in the file looks like this: 'Corn For Grain', 'Irrigated', '1970', 'Colorado', 'Chaffee', '8', '10', '15', '11199199', '1', '', '100 acres', '75 bushel', '7500 bushel', '', '' It has commas because it came from … | |
Hi Folks, I'm using this code I found online to decompress a large file. It works fine when I try it with a small file i.e. a 5MB mp3 (1.7MB compressed) but when I try and use it with a 250MB file (27MB compressed), the newly created output file is … | |
I have a subtitle file and I want to extract timestamps from the file. e.g. from below lines: [QUOTE] <SYNC Start=106377><P Class=ENCC> Hey... <SYNC Start=107350><P Class=ENCC> close the door. [/QUOTE] I want to extract timestamps '106377' and '107350' and append them with the name of the file including .bmp at … | |
i want to import a file and then use the items in variables i have the file imported i also turn it into chunks with explode now i tried preg_replace to get rid of certain charaters i need to get rid of " character from the file then split it … | |
I just wanted to post the code I wrote for an OO C++ solution to solving sudoku puzzles. I'd like to invite anyone to ask questions, give comments, or make critiques on the methods or algorithms in the code. For a recent job interview, I was tasked with writing a … | |
Hey guys, Basicly my nephew has just been born and I need to put soem images on my site for my grand parents (the great grad parents) to see. I can upload smaller galleries and all is well but for some reason if I upload a larger archive, for example … | |
Hi All, Am new to this forum and really happy to share my programming thoughts to you all. It would be great help if some body gives me the the solution for the below. Case: When i select a file (through html file control) from local machine, before uploading i … | |
I am using this code for simply reading from a text file but i want to put file pointer at the begining again when it reaches to the end of file. But my code below is not working. u can ignore extra bits of my code... like header files... :) … | |
Somebody please help me... I printed first report properly, while printing second report (for eg sales bill) compiler shows an error message, "The process cannot access the file because it is being used by another process". The code is given below where the IOException was shown. [code=csharp] // Routine to … | |
I'm trying to declare a structure definition in a header file so I can use the structure in other files, however I get the error: error C2011: 'Points' : 'struct' type redefinition from the file where the structure definition is declared. The structure is only defined in that header file. … | |
I assuming it is unefficent to upload and stream a video with php. So this is a 2 part question (1. using php to upload the contents, 2. using php? flash? etc? to convert and play the video file). 1. How would I upload a video file? - Like a … | |
I've got code sections which write and read binary files. But when I print data reading from file. It appears unnecessary characters. [code=cplusplus] int WriteFile(const char* file_name) { fstream file(file_name,ios.out|ios.binary); if(file.is_open()) { string data_block="I don't understand!\nAdd one line"; file.write(data_block.c_str(),data_block.length()); file.close(); cout << data_block << "(" << data_block.length() << ")" << … | |
I working on part of a code for a much larger project. I understand how to write a program for a password in the simplest form, but I want to have it let the user guess the password up to 5 times and then not let them run a command. … |
The End.