6,015 Topics
![]() | |
How to write in CSV file using PHP script? Actually I was also searching for that too. It is kind of easy task with PHP. fputs(handler, content) - this function works efficiently for me. First you need to open the file in which you need to write content using fopen($CSVFileName, … | |
I am working on this project and i am going to need to write information and retrieve them from a file. I get all the information needed but i am not sure how to write it to a file and how to get it back. if (id.is_open()) { cout<<endl; cout<<"Enter … | |
for the program im writing this is what i have to do: i have to write a C program that maintains a table of productID and price in a .txt file. The following menu shows the functionality of the program: 1. Display all products 2. Search product by ID 3. … | |
hi, this is the code: #include <stdio.h> main() { int m1, m2, m3, m4, m5, per; printf("Enter marks in five subjects\n"); scanf("%d%d%d%d%d",&m1,&m2,&m3,&m4,&m5); per=(m1+m2+m3+m4+m5)/5; if(per>=60) printf("first division\n"); if((per>=50) && (per<60)) printf("second division\n"); if((per>=40) && (per<50)) printf("third division\n"); if(per<40) printf("fail\n"); } this is the output for: [root@localhost lbin]# gcc -o division division.c … | |
I'm in an introductory CS course and our task is to build the best ideal boggle board (one that would get you the most points). We are allowed to use arrays, c-strings, and reference parameters (no structs/pointers since we are just starting to learn about those). Step one: I built … | |
Hi, i have the following text file and i need to put inside a 2D array without knowing number of rows and columns in the text file. (i want C to count this also) i've tried something like that: for (int r = 0; r<2; r++) { for (int c … | |
![]() | on the screen there's a button, when user clicks it, a function is called. this function is creating a pdf file, in the end of the function a pdf file is created and saved in tmp folder. I want to add some code at the end of that function that … |
Hello, I am fairly inexperienced with coding and have been having trouble with a program I am trying to write. The problem is that when reading from a text file the program will only read some of the file not all of it. Any help would be greatly appreciated. Here … | |
hi, im a new comer in this forum. please anyone can help me for find string in large text file (filesize = 1mb to 5 mb) example: i have a text document file, filename is test.txt file test.txt contains serial number 000001 000002 000003 000004 000005 000006 000007 000008 000009 … | |
Hi guys i have a problem here i have and input type file which will be containing an image file <input type="file" onchange="validate(this)"/> now my code below work in its extension detection but if it is invalid the input file still have i value i want it that if the … | |
I have been pondering this task for awhile now and I just can't get it to work. I am trying to get the function readParameters to read the text from a .txt file and transfer them to the specified variables. I have managed to eliminate almost all the warnings but … | |
Good Day all! Looking for a little help here. I have to open a file containing a few words, some of which ending in "ed" and print the only the words ending in "ed" back to file. Here is what I have so far. I cannot seem to open the … | |
Hi I need to take one or more files(**.txt** or **.csv** format only), convert them, one at a time and sent them to the printer in **PostScript** format. The paper will be pre-printed and of A4 size. It is perforated in the middle(Portrait orientation). For example, taking a file, A.txt, … | |
Hello, As of now I am trying to read in a text file that is tab delimited with uneven columns. My problem is that when I try to split the file into respective lines, I get an "out of array bound" error. I know this is due to have a … | |
well I've this little homework. "Given a text file, create a function that search an specific ID provided by the user inside the file, If exits, print the entire profile as follow: ID_genre_name_age_height" So In the text file there is only one profile. 19800372_male_David_19_1.75 so, my function should print that … | |
Below is the java source code where I am trying to read a file and want to display its content on an applet which is opened through a html page. The problem is that when I try to open the applet through appletviewer there is not problem the data is … | |
I am developing a very simple notepad-type program in C++. The only problem is that when I prompt the user to delete their newly written text file, it doesn't work. Since I let the user pick the name for his/her file, I can't figure out the code to delete it. … | |
HI, I AM HAVING A PROBLEM IN ISA SERVER 2006. I WANT TO DENY THE USERS FOR WATCHING THE ONLINE MOVIES OVER THE INTERNET AND ALSO CANNOT BE ABLE TO DOWNLOAD FILES WHICH ARE MORE THAN 10 MB. ( WITHOUT ANY SOFTWARE LIKE BANDWIDTH SPLITTER ETC ETC ) REPLY WILL … | |
import java.io.*; import java.util.*; public class Cleeve { /** * @param args */ public static void main(String[] args) throws IOException { File inFile = new File("Sport.txt"); Scanner inFile2 = new Scanner(inFile); File outFile = new File("Proffesional.txt"); PrintWriter outfile = new PrintWriter(outFile); File outFile2 = new File("AmaturElse.txt"); PrintWriter outfile2 = new … | |
I'm creating a jar file of my game to make it smaller and easier to transfer. I was able to created jar file out of my classes and include there images. Question is - how do I include txt file which is used for reading and writing? | |
Hi I am developing my own image hosting script and i want to add api image upload.However i have no idea of how to create API support at this moment.I particularly like the tinyurl api . How can i create a similar api so that users can upload images to … | |
please help me on my project on how do i make this upload music files also help me on making the upload path i don't know how to start. i really do need your help guys :( this the controller <?php if(!defined('BASEPATH')) exit('no direct script access allowed'); session_start(); //we need … ![]() | |
My Text file is below. The bounds should be 0-2 for letter A or D then 2-15 for StateName(these are new states being added to a stack) and 15-25 for what should be the capital, but not all of them have capitals and for those I am getting an out … | |
Hello, I'm posting again regarding as to why my php code won't process the delete.php Index.php: <div id="DeleteFile"> Delete A Script: <form action="delete.php"> </html> <? $path = "uploads/"; $handle = opendir($path); echo '<select>'; while ($file = readdir($handle)) { if (substr($file,0,1) != ".") { echo "<option value ='$file'>$file</option>"; } } echo … | |
Hi. I'm having problems about my program. My program is something like a directory. It takes in values for different fields and stores it in a linked list in a sorted manner. It also allows the user to save the linked list contents to a text file. Everything runs okay … | |
I'm trying to read from a text file and have any multiple whitespaces between characters become one whitespace. If this how I do it using an array, #include <stdio.h> //Function prototype void modifyspace(char *dest, char *src); int main() { /* Initialize an array of 2000 characters */ char src[2000] = … | |
I was wondering if there is a way to import file names from one specific folder to a text file. for example... my whole music foler. I want to create a text file for all the songs that I have in that folder. Is it possible and if yes how … | |
I'm new to javascript. Lets say I need to create a new `<p>` everytime the user clicks on a button. So I create a button in the html body and assign a function as the event handler of `onclick`. This function is in a separate file called "file.js" which I … | |
i face a problem in checking file condition. I wish to create a program that can check the condition file continuously while the program is running. For code below that I wrote: [CODE]Private Sub StartTracking_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim FILE_NAME As String = "\Program … | |
Hi, I write some data(Hello) in a file copy.txt. I read from the file copy.txt to convert the text "hello" to ASCII and then i store it in another file copy1.txt. It saves the ascii like this in the file copy1.txt: 104101108108111. Below is the ascii of each character: 104 … | |
hi i want to upload and post my pdf material in my site and its my personal institute material so i dnt want to give the download option for that file so how it is can anybody help me ??? | |
Hi Guys, I've been working on a little something where details get put into an XML File and then squirted into another form which has been working fine. I've now added another section to the XML file to hold the Company Name and it gets written to the XML without … | |
Hi guys, Im just confuse...heres the situation Im having photo uploads in php.., before uploading temporary file will be created my question is where can you find the temporary file, @the web server(where your php app is runnin) or @the client PC(where the uploading session is done) thanks in advance..... | |
Hi can someone help me out, please. I have been using the same file upload script on three websites that I manage, with great success. But recently I have encountered some errors when accessing the file upload form on my locahost server on my own computer server. This has never … | |
How to upload file and form data using jQuery? <input type="text" name="Name" id="name" /> <input type="text" name="Email" id="email" /> <input type="file" name="attachment" id="attachment" accept="application/msword/pdf" /> $target = "uploads/"; $target = $target . basename( $_FILES['attachment']['name']) ; move_uploaded_file($_FILES['attachment']['tmp_name'], $target); | |
when i download some videos from you tube some download are fast, like for VEVO ithe download is fast but foer other videos it is 80% slow.same is the problem for other download. any suggestions? | |
Hii need help for writing user input in a file. The following code is writing only the last word in a file. For example if user type "hello world", it will save only "world" in the file. I want to write the whole sentence in the file. for i in … | |
I searched and found a lot of codes and I made a code for myself for transfering file through ftp protocole but I got some errors there that I dont know:-s this is my code : Dim FTPRequest As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://ftp.microsoft.com/Softlib/" & "README.TXT"), System.Net.FtpWebRequest) FTPRequest.Credentials = New System.Net.NetworkCredential("", "") … | |
Hi, I write some data to a file called original.txt in python, then i read the file original.txt ,convert watever in the file to string(str), then write it in another file called copy.txt. Now i want to read the copy.txt and output it in python itself. It does not display … | |
When choosing the input file, I tried three ways & all of them generated errors ! I created the file.txt in the project's folder. I'm using Netbeans IDE. 1) Passing java ShowFile Input.text as a command-line argument [properties ---> run ---> wrote this command-line in the 'Argument' box] 2) Using … | |
I have a simple form that uses a bit of jquery, <form action="" method="post" enctype="multipart/form-data"> <label for="file">Upload File:</label> <input type="file" name="userfile" id="userfile" /> <input type="button" value="Submit" onclick="uploadfile()"/> </form> the uploadfile() in my .js file looks like this: function uploadfile(){ var userfile = document.getElementById('userfile').value; var username = document.getElementById('username').value; $.post("php/upload.php", {userfile: userfile,username: … | |
Hi I read a text file using PHP, the file gets uplaoded, and what I want to do is read the file take some information out of it and post it to mysql. Problem is that when reading the file it removes the spaces, I cannot count where the data … | |
String Compare and File Handling mixing together... I am practicing my self to combine functions together like this. so get this, is it possible to search record from the File using File Handling(fscanf) and compare it from the User's input and display it...check out my program. content of **2003.txt** 1234 … | |
I have this to find the path: [CODE] System.IO.FileInfo path = new FileInfo(com.Substring(5)); string fullpath = path.FullName; [/CODE] But that returns the path of the console app + whatever i type. (e.g. C:\users\RILEY\Desktop\....\....\....\+(com.substring(5))) What I want to happen is when i enter: ./$ cat log.txt The console app writes what … | |
I m developing a C# CE application to read data from binary files which created by C++ progam to do item validation. Below is the coding of the C++ program.. // File Name: Ean2an.bin which is created by struct struct EAN2AN_TYPE { __int64 ean:40; // 5 bytes, up to 12 … | |
Hi, i have a .reg file that i'd like to run via a batch file. What is the syntax to call the .reg file? Thanks | |
Hello, I'm trying to automate downloading from turbobit.net through php, i login successfully and get all the cookies. then when i try to intiate another connection to download a file i get these headers back > HTTP/1.1 200 OK Date: Thu, 26 Jul 2012 17:44:02 GMT Content-Type: text / html; … | |
I am new to php.I was trying to upload a file but i got an HTML table as result with undefined content type.Here is my code <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="fileuploader.css" rel="stylesheet" type="text/css"> <script src="fileuploader.js" type="text/javascript"></script> <script> function createUploader(){ // alert("hhh"); var uploader = new qq.FileUploader({ … | |
Here's what I have so far, I'm just having trouble writing the second part that will say that the string in the text file isn't there if the user enters a number thats not saved in the text file (data3.txt). Also how would I make it so that the program … | |
Can anybody tell me about a opensource uploader that can upload file with post variables.I need it. |
The End.