6,015 Topics
![]() | |
[CODE]<?php $file = 'GPSserial.txt' or die('could not open file!'); $handle = @fopen($file, "r") or die("could not open file!"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); $GPSstr = $buffer; $GPSarray = explode(',', $GPSstr); if ( $GPSarray[0] == '$GPGGA'){ echo 'congrats'; } else{ // move to the next line … | |
Hello everybody I made an personal form to upload files to different maps wich can be selected. I'm making an mistake, but I don't know how to fix this. There is no error only when the file is processed, the file isn't kept in the directory map wich was selected. … | |
I get error as below when I tried to start my Linux server. /data contains a file system with errors, check forced. Error reading block 77000497(Attempt to read block from file system resulted in short read) while doing inode scan. /data: UNEXPECTED INCONSISTENCY; RUN fsck manually. (i.e.; without -a or … | |
Hi Friends in my project i have to build file input tag to get pdf file from user. this pdf file should be store on my web server disc and path of the file should be store on database. Hey Guys Please Please Help Me. can any body give me … | |
Hi everyone, I'm working with a text file. I want to read a part of it into a string. Here is a sample: <MEAN method="jackknife">3.97e-06</MEAN> In the above line i want to put the number 3.97e-06 into a string. The code that i wrote can find the position of the … | |
So, I've learned my lesson in the past. I'm not experianced enough to design a program from start to finish in an elegant way. I'm not looking for code in any way, just some code flow suggestions if anyone has any. This is what I'm trying to do: -Do a … | |
[code]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; class ll{ public static void main(String[] a) { FileReader fr; try { fr = new FileReader (new File("C:\\University Study\\Component Engineering\\Assignments\\Assignment !\\yourFile.txt")); BufferedReader br = new BufferedReader (fr); String line = br.readLine(); while (line != null) { System.out.println(line); line = br.readLine(); … | |
hi there, I need to upload files to the mdf file in visual studio 2008 standard edition. the database table which takes the file data in to varchar datatype. i convert the data to byte and then save it in a varchar type field. the code is below for uploading … | |
Help please, I wrote a script in C++ for loading a map file, parsing it with XML, and outputting the objects in the file. The XML parser works great, but it won't open the file. I have it exiting if the file doesn't exist, and the file doesn't load, even … | |
I'm attempting to manually load the hexdump of an elf file that I compiled using g++ into a processor simulation I designed. There are 30 sections to a standard elf file and I am loading all 30 segments with their proper memory location offset taken into account. I then start … | |
hi, i had done some coding ..im unable to get how to check the entered field is present in xml file or not...can anyone help me out....waiting for the reply..here is the code.. 1. package login; 2. 3. import java.io.*; 4. import javax.servlet.*; 5. import javax.servlet.http.*; 6. 7. import java.io.*; … | |
Hello, I'm learning PHP from w3schools.com but they didn't explain everything clearly, see that page, [TEX]http://www.w3schools.com/php/php_file_upload.asp[/TEX] I want to know the meaning of this line , how it is checking the error in uploading ? [CODE]if ($_FILES["file"]["error"] > 0)[/CODE] | |
I made this program during forum discussion for accessing configuration relative to module directory, not main program's position (which can be accessed by sys.argv[0]'s directoryname). As the thread is closed I post my proves as code snippet. | |
Hi, I have got the following requirement: In a file that has many lines, i need to search for a particular line that has the word DTP. The line may be like this in the file: src 172.23.1.23 dst 192.14.2.34 DTP 0 - 65000 If the line with the word … | |
Good day, everyone. I am refreshing my c++ skills from a year break or so :$ I am having some troubles remembering on how to write to a file. I have the general idea down, but I am not sure what I am doing wrong. I would be much appreciative … | |
hi, im trying to compare the md5 key of a file selected with the md5 key of known files stored in a text file. i can get the md5 key of the file selected and all & also read the text file line by line however, i cant seem to … | |
Need to make a website for a school project. Decided to make a website like photobucket. I got every page read, but the only thing missing is the uploading part. Does anyone know where I can find some examples of uploading blobs? Or mayb someone can share one. The thing … | |
I wrote a python program that gets input from an input file. It works fine for small input files since after opening the file I did this to get the data [code=python] data=fPtr.readlines() [/code] Since readlines only takes the input data and packs it into a list, it is clear … | |
Here is the list of scripts directories to submit your scripts,software to get more exposure.If you have developed new scripts,software then submit it to these script direcories. [url]http://www.scriptsdesk.com[/url] [url]http://gscripts.net/[/url] [url]http://www.allthescripts.com/[/url] [url]http://www.cgi-index.com/[/url] [url]http://www.cgiexpo.com/[/url] [url]http://www.allthescripts.com[/url] [url]http://www.scriptswave.com/[/url] [url]http://www.infoscripts.com/[/url] [url]http://scriptlisting.net/[/url] [url]http://scriptrank.com[/url] [url]http://www.best-php-scripts.com/[/url] [url]www.freephpdirectory.com/[/url] [url]www.slashscripts.com[/url] [url]www.phpscriptsearch.com[/url] [url]http://www.fileplaza.com[/url] [url]http://www.scriptsez.com/[/url] [url]http://php.resourceindex.com[/url] [url]http://www.hotscripts.com/[/url] [url]http://www.scriptaty.net[/url] [url]http://www.codango.com[/url] [url]http://www.webresourceindex.com[/url] | |
I am trying to upload a file into the server.. but its not working. im coding in mvc and this is the view file which contains the form data. <form id="frm" name="frm" method="get" enctype="multipart/form-data" action=""> <input type="file" name="file" /><input type="hidden" name="MAX_FILE_SIZE" value="2000000"/><input type="submit" name="upload" value="upload" /> </form> this is the … | |
Hi, I'm using a simple .htaccess file to use a custom 404 error page: ErrorDocument 404 /errors/404.php Inside this 'errors' folder, there is the 404.php file, and an image, which I want to include in the 404 page. Anyway, when I request a non-existing page from the root folder, everything … | |
I have put some xml data in a file the python code below and have been trying to figure out how to get the data from the file add another "person" and then save to the same file again. [code=python] from lxml import etree from lxml.builder import ElementMaker E = … | |
Suppose I have two laptops connecting to the same router. If I want to transfer file btw them, how can I do it ? tks b4hand. | |
I have a file over 100 Kb long. I want to perform operations on successive batches of 256 characters. [CODE] int fs=0; char ss[32556]; ifstream nm,nm1; nm1.open("as86.txt"); if(nm1.is_open()) { nm1.seekg(0, ios::end ); fs = nm1.tellg(); } nm1.close(); nm.open("as86.txt"); nm.read(ss,fs+1); nm.close(); cout << endl << fs << endl; ofstream mn; mn.open("as86.txt"); … | |
Hey guys, Hope I'm not posting into the wrong section. I think I have something very simple that i'm having a lot of trouble with. I have a text file called "file.txt" It contains: TagString=V3,SCC-COM,WXF1A20V0556,WXE1A2071007,PREBI TagString=V3,SCC-COM,WXK1A1045668,WXG1A30F3909,POSTBI TagString=V3,SCC-COM,WMAYP0002467,WMAYP0002769,BI I want to run a batch file that'll parse the 1st & 2nd … | |
![]() | Hi all, firstly I'm new here and my English is not perfect but I think it is not important :) I have web page where user can upload file. He can select which file to upload with standard HTML input of type file. I want to add this feature: when … |
Heya. I require assistance regarding one of my Java programs. As the program is rather large I'm unable to post the source. The problem, My program will not start once I try to execute the Jar file associated with the program. Platform, Netbeans IDE 6.8 Description, I've written this program, … | |
Hey guys, quick question, I'm a beginner and put together a grep script that searches for certain content within text files in a directory. The result yields over 600 lines so i want to put them in a file called file.txt. [CODE]opendir (DIR, ".") or die "$!"; my @files = … | |
Hi all, in a python script file, I am having a open statement and then i write a "50000" to that file. And then within the script i am writing a scp command that transfers the file to a remote machine. In the local machine if i check the file … | |
I need to create a bynarytree of which information of a node is made of ISBN and price fields, data kept in a structure (book). I write in a .txt file : ISBN=10 Price=100 ISBN=13 Price =1 how can i populate the bynarytree with this informations, from the file? example: … | |
I have a insanely large file that has a lot of customer data in XML format. The start of a customer <CUSTOMER> and end </CUSTOMER> are how I'll determine the starting and ending points of the customer data I need to extract. The <DOC_NUM> is the number I'll be searching … | |
I have a program in which I have used a .myFileType file. obviously windows does not recognise the file type and so I have to browse for the file in the application. how do I make it so that windows knows .myFiletype's native application and launch the application on double … | |
I have a working cpp file, lets just say it performs a+b, the filename is abc.cpp. I want to call up that file, function, in another file without having to rewrite the code and simply call up the function in another cpp file, xyz.cpp and simply map my variables over … | |
I have a SD card with Files that got changed somehow from MP4 to JPEG...I have tried altering the suffix and it seems like they wont play. Does anyone know of any FREE program or way to correct this so I dont lose my movies? | |
Hello, I have made client server communication and I am sending and recieving Files. I am using file pointer and fread and fwrire commands to read and write file. I am able to read and write .txt,.GIF files.but I could not write .doc file. I am opening file in binary … | |
Hi, Okay, so a while ago I had the free AVG but I forgot to update and I eneded up catching a virus. It locked me out of my Task Manager and out of my readit files and nothing I do will turn it back on. Onto of that I … | |
I'm trying to fill a string with the name of a file stored in a "fake memory" vector. Assuming I have a start pointer that directs me to the beginning of the string in my memory and I know the string completes with a NULL, how do I do this? … | |
I had to write 10 objects of cars into an array and now my problem now is writing the array into a text file. I am able to get the correct output in the console, but when I open the text file I get part of the desired output, as … | |
I keep getting this error with FrontPage when I try to open an .htm file. The error is something to the affect of, "Couldn't open file C:\Document and Settings\blah\blah\blah.htm". They appear as regular Internet Explorer Icons and will open in I.E. but when I right-click>open with>FrontPage, I get that error … | |
Does anyone know how to do file input and output with spreadsheets? Specifically I'm going to be using the open office spreadsheet. thanks | |
i have a c# application which is use for from design, it creates .kd file on save option , After running application i have to browse my saved files and open them in my application. but i want a way that that a click on file with .kd extension will … | |
Hi, I am new at this... I am trying to display data from a text file to a JSP file and I'm using BufferedReader to do this but having problems getting to the file. Which directory should I put the text file? Should I add anything to web.xml to reference … | |
I have a list of files of similar format. I want to extract all lines form each file that are containing exact character for example I need to extract only lines with TPO and saving to another file also I need to extract only lines with HOH and saving to … | |
Basically, after the user inputs a cvs file which is formatted like (unmod.cvs that is attached is complete file): Source, Native ID, Index, Charge, Cluster ID, FDR, Precursor Mass, Calculated Mass, Mass Error, Peptide, Mods, Search Scores /tumor/set2/mam_082208o_individualsamples_747T_set2_082008_A01,scan=771,770,2,46,0,1162.436,1162.438,0.001953125,NDDDEEEAAR,,(mvh 52.0926)(mzFidelity 69.9226) /tumor/set2/mam_082208o_individualsamples_747T_set2_082008_A01,scan=1147,1146,2,93,0,1436.543,1436.506,-0.0369873,AAEDDEDDDVDTQ,,(mvh 68.8836)(mzFidelity 92.7468) *note that the mods value is a … | |
i have 10 data notepad files (with column x= 1 to 5 and column y = some random number) x y 1 12 2 13 3 8 4 6 5 2 i want to multiply the 1st file's second column with 3, and save it as new data file Increase … | |
My program performs a search on a specific directory and returns a list of files with specific criteria. When the user selects a file name in the list and Clicks the button, I want the program to open that file and print it. I have two functions - one store … | |
Hi, I am new in assembly and i nave some problems. I am working on some project for school i should read text from .txt file. The problem is that i don't now how to get the number of chars contained in .txt file that i need to store in … | |
Hi Guys , I am trying to load a xml file as follows and i am getting file not found exception even though the file is on the desktop.I have checked the file name and extension they are correct , can anyonehelp please [code] private void button1_Click(object sender, EventArgs e) … | |
hi every one, I am making KBC game in C++. To store questions and its options in a file, I am unable to write successfully the character string of question in the file due to spaces between question. So,can anyone tell me how to write a character string having spaces … | |
Hi all. I attached a code creating file from datatable. I have a problem saving Excel file in c# using Microsoft.Office.Interop.Excel. When I'm saving the file as Exsel 2003 (xls) format the file is OK. When I'm saving the file as Excel 2007 (xlsx) format I get error massage from … |
The End.