6,015 Topics
![]() | |
I'm trying to create a validation program which entails throwing everything in a csv file that i have into array and then looping through it and doing a comparison. Here is some of my preexisting code which currently finds the name of a file that I want to do a … | |
This program is from the collopy book. I just had to type it in and create a text file so it would compile correctly for a class assignment which I did. But the very last record will not be shown when i compile. This is what is in the txt … | |
I'm trying to create a tcp server and tcp client using sockets. I'm new to VB and could use some help. I have the file transfer part working but, I'm running into an issue. Every time I transfer a file remotely the file size changes, leaving the file unusable. Can … | |
word is a private variable. MAin [code] #include <iostream> #include "FrameThePhrase.h" using namespace std; int main() { Frame_The_Phrase frame; char in; ifstream input; bool a=true; bool b=true; bool c=true; string length; while(b==true) { cout<<"to quit type 'q'\n" <<"enter 'c' to get from console\n" <<"enter 'f' to get from file\n"; cin>>in; … | |
Hi, I'm having a very strange problem. I use lampp on centOS linux. My application has a upload Script (in PHP) which uploads file to file system. after upload and moving file to correct location, uploaded files are getting deleted. I check file upload and moving of file by putting … | |
Hello..,, I have read about a function used in file handling named as "peek". If anyone knows about this function then plz tell me..... | |
Okay so when I open a file and I would like to pickle something to the file you are supposed to open the file in 'rb' (read binary) mode to load stuff from it. If you want to dump something the file is supposed to be in 'wb' (write binary) … | |
Hello, everyone. Can someone explain to me on how to read a .mdf file (the SQL Server 2005 Express kind)? I have a Java IDE (JCreator) and the JDBC (SQL Server 2005 Express compatible) installed into this computer. Right now, I'm using this: [CODE]Connection c = java.sql.DriverManager.getConnection("jdbc:sqlserver://localhost\\SQLEXPRESS;DatabaseName=qsscsdb;IntegratedSecurity=True");[/CODE] to read the … | |
Hi all I am facing a problem in posting some values to an asp file from an aspx. From my shopping cart project coded in aspx I have to post some values to an asp file. Code in the aspx file it is written as, [code] strParam = "mrfnbr=" + … | |
Here is the problem: Write a C# program that will read five scores, each on a separate line, from an external file named Unit09data.txt. Your program should then calculate the average of those scores and write the average, formatted to two decimal places in a different external file named output.txt. … | |
i have a file sharing script. here is its demo and ther is also zip file of 3 MB in latest uploade [url]http://xtrafile.com/xu/[/url] i want some change in this script i want more then two pages should be displayed to download file one vil only give file information include a … | |
Hi, i'm trying to read a simple email file from a folder in my computer. I find this code but, it's not working. i didn't understand theses lines: what should i write for mail.host? what should i write for "mail.transport.protocol", "smtp"? props.put("mail.host", "smtp.gmail.com"); props.put("mail.transport.protocol", "smtp"); [CODE] import java.util.*; import java.io.*; … | |
Hi, I have a problem with a program that shows the contents of a file, but when it process the data to figure out the sum, max, min and average, that values are wrong. Any ideas? Thanks Liam [code]// CO1401 Reassessment 2008/9 //Liam Moncur BSc Computer Networking #include <iostream> #include … | |
question 1 : I know that c++ could write/ read excel file by changing it into csv format. however, if the content of a cell has a "," inside, then we may have problem when we are reading it as the content may be split into two parts. So how … | |
Hello Everyone, I'm new to flash and actionscript 3. I just purchased a flash file that is driven by as3. I don't know how to embed it to my webstore's main page. Any help would be greatly appreciated. Here is the description of the files I received with my purchase: … ![]() | |
I'm working on a simple program to analyse some data and I'm having trouble making multiple passes over my file. I've been trying to do something along the lines of for(n=0;n<Nmax;n++){ while (! inFile.eof() ){ crap done here; }; }; however it won't do more than one pass over the … | |
| |
Hello, I'm learning C++ and i want to know how i can develop a program that reads a file like a database, but the program don't know how many lines or columns the file have, and the file is like this: [CODE]"Name Test" "1901" "email@test.com" "John Google" "6673" "john@test.com"[/CODE] And … | |
Hi, I really hope that someone can give me a little advice. I am working on a program that reads a text file formatted as follows: Bike, Schwinn, 45.00 Car, Mercedes, 98,000 ... I am writing a program that will read this text file and write each item in a … | |
hi, im building an app where im tryin to upload an image to my database through file upload dialog box. my problem is, when i select a file thru the Fileupload dialog and save the path to a string variable n try to save it, the app takes the connectionstring … | |
Ok I need help with this structure its now been split into header and main, I have added a function which runs after adding a new customer which is for writing it to a txt file, the program builds fine but once it gets to the part where it needs … | |
Hello I have a ticket helpdesk script that I am converting to make it completely skinnable. For this, there is a file called header.php which includes the link to a css file. The code is below [code] <link rel="stylesheet" href="<?php print $GLOBALS["URL"];?>/templates/gothica/aquarius.css" type="text/css" /> [/code] I want that the path … ![]() | |
Hi everyone! I'm totally new at C++ but quite good at Java. I know the syntax basics and that kind of stuff in C++ but when it comes to using .h files in my .ccp programs I'm totally on bare bottom. I use Dev-C++ 4.9.9.2 to compile my C++ programming. … | |
im having difficulties, pls advise... 1) filtering my FileUpload to only .txt file 2) read .txt file and bind to gridview, the text file contains e.g. 1234; 9584; 2384; i want to bind it to my gridview which have just one column Please Advise...with c# codes. thanks | |
i need help trying to open an .exe file then opening a file in said exe program i.e i wanna open a file in flash after opening flash. so far i can open the exe file with no problem but from there I'm stuck. this is what i have [code] … ![]() | |
Hai , For that last two hours i have been troubling with a problem. I want to get the modified date of a text file. i wrote a sample program , worked fine. But when i attached this program as a function to my actual application , it shows the … | |
Okay first post here, and I'm running into a problem. What I would like to do is read in files and have the user enter in the measurement they're looking for. This is what I have so far. [code=c]// switch.cpp : Defines the entry point for the console application. // … | |
Hi guys, I am trying to use the Python logging API to log only to a file. The code below logs to only a file if I have it at the beginning of my class, right beneath the "class ..." line. If, however, I put it inside a method, it … | |
I'm having an odd problem writing some template classes and placing the implementation in a separate .CPP file - specifically I keep getting the following errors: Error 1 error C2143: syntax error : missing ';' before 'List<T>::begin' Error 2 error C4430: missing type specifier - int assumed. Note: C++ does … | |
Hi all, i'm trying to get a specific line in a text from a text file. In fact i want to read just the eight first line from my text file. It's only return the four first line. why? here is my code but, there is Format problem. [CODE]import java.io.*; … | |
After many frustrating hours and web searching I cannot figure out why the move_uploaded_file is appending the names of already already created files to the name of new files. As you will be able to tell from my code I an pretty new to PHP. However, I have a pretty … | |
Hi, I wrote a program to read from one file and then process data and out put to another file, it all works okay but what I am wondering is that my source file will have a different name all the time, but it will always be the same file … | |
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 … | |
Hi, i was wondering what would be the best way of reading a single line from a text file? For example, i have a file that contains the following data: dog cat bird deer How can i read the 3rd line of the file? I was thinking that i would … | |
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 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 == … | |
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 … | |
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 … | |
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 … |
The End.