7,373 Topics
![]() | |
Hi! I'm trying to decompress my GunZip files from the web using an WPF app, I get no errors, but then, when I open the files, I see randomly inserted "z" and my files aren't complete! Here is my code: [CODE] string file = sr.ReadLine().Replace(".gz", ""); SetInfo(Path.GetFileName(file)); int size = … | |
Problem stated: Write the function flip_lines(). Open the input and output files file using the parameters. Return true if both files can be opened and processed, false otherwise. If both files can be opened, write each successive line of output in reverse order. (In other words, switch line 1 and … | |
The code was designed to create a new page with the random number and then it would insert code into the newly created file. This worked when I was using my localhost, but now I receive these error messages. I looked around the web and I saw somethings about permissions??? … | |
Could you please help me with this task? "Write a shell script which solve the task without the whereis command. The parameter ($1) is a file name. The script tells you which directories (maybe more than one) does the file exist in. (in the all-time PATH variable)" So far, i … | |
hello can any 1 hlp me for creating a secured exe file of an console application.means i hv created 1 program in c using dev c++ as compiler. now it is creating an exe file of the project in the same project directory. thats fine. nw along with that exe … ![]() | |
Hi all, I'm writing a program to read from a stream file, one line at a time, I used getline() and fgets(), both gives a correct result, but they give a "segmentation fault" when reading the last line of the file, I think because of the NULL character at the … | |
using dev c++ as compiler,bt coding the program in c.suppose i hv created 1 program in console application ,compiled it,run it, it works fine,on compiling & running it,. it produces the various supported assosciated with it. like makefile.win,gmon.out,project.exe,project.dev,main.o,main.c,now on seeing these files in notepad 1 can easily determined that program … | |
Hllo everyone. I am Gabriel from Romania (sorry for my bad english) My problem is: I have 3 listbox (1.ID 2.Online ID 3.Offline id) Now... From a .txt file or from a button an id/id`s are inserted in listbox 1. A second button "check status" verifies if these id`s are … | |
I have a CSV file with the following data 15278349,567892,3456,9742.30,CASH-WITHDRAWAL-200.00,DIRECT-DEBIT-200.00 64328975,632489,7562,98734.65,CHEQUE-DEPOSIT-100.00,CASH-DEPOSIT-424.54 etc... How would I print to screen the individual lines instead of just the top line?? Sam | |
I am trying to upload images to the ftp. I need to have it in a compressed folder called by a specific name and then upload that folder to a specific directory. Each time I try, I get an error The remote server returned an error: (550) File unavailable This … | |
[code] #include <stdio.h> #include <conio.h> #include <iomanip.h> #include <ctype.h> #include <string.h> #include <iostream.h> #define input "d:\\tcpp\\bin\\files\\input.txt" #define tempo "d:\\tcpp\\bin\\files\\tempo.txt" void menu(void) { cout << "Menu\n\n"; cout << "A - Add\n"; cout << "D - Delete\n"; cout << "I - Display\n"; cout << "E - Edit\n"; cout << "S - Search\n"; … | |
This is a program my instructor wrote and I have to create a program that similar in format. My issue is I don't quite understand what main is doing or how it works, was hoping someone could explain it to me in detail. Rolodex.h [CODE] #ifndef _ROLODEX_H_ #define _ROLODEX_H_ #include … | |
Hi again! I'm now working on a client, that will download my compressed file from the web server, downloading goes nice and easy, but when it comes to the line I marked, nothing happens! Here is my code with the marked line: [CODE] byte[] data = new byte[size]; stream.Read(data, 0, … | |
Hello, I am parsing a rebase file and using different subroutines from the BeginPerlBioinfo module. I have used the subroutines I think I need but I keep on getting the message"use of initialized value $site in concatenation or string <$fh>. [CODE]use strict; use warnings; use P4; # Declare and initialize … | |
Hi! I'm making a program that uploads my game to an Ftp server but when the data is compressed something goes wrong and I end up with an array of zeroes. Here's my code: [CODE] FileStream filestream = File.OpenRead(file); byte[] filebyte = new byte[filestream.Length]; filestream.Read(filebyte, 0, filebyte.Length); filestream.Close(); //MemoryStream inS … | |
I tried this class a couple of different ways and I had it print just memory location I think one way now I have an error that says: Traceback (most recent call last): File "F:\Python_Stuff\CSC143-901\Lexicon.py", line 83, in <module> source = Lexicon.OpenFile('word') TypeError: unbound method OpenFile() must be called with … | |
i've posted a thread about reading xml file from remote machine. i've used JDOM to read xml file.bcs as someone has told me,it is really easy and flexible.now i am using it normally in local machine.i've opened a socket connectio between server and client machine.then i use JDOM to read … | |
Hi all I want to get a file (pdf) via a parameter and stream it to the clients browser (this part works). Now my problem is, that when you click save, it suggests the name of the .aspx with a .pdf extension. How can I change this? Here's my code: … | |
Im trying to make my program to either open or create a file if it does not exist, in "C://". [code] printf("Filename: "); scanf("%s",filename); FILE *fil; fil=fopen(filename,"a+");[/code] This code opens or creates a file in the same folder as the program. What i want is something like this: [code] printf("Filename: … | |
I need to write a wmv file into stream and read it from stream.pls help me. | |
Hello, i'm new to this forum and this's my 1st time posting a code. my issue is that i have a code that should read from a file called ( ex: word or text), but it does not read the file it jUst gives me the error (could not open … | |
Hey everyone. My problem is that every [B].exe[/B] file that I download from [B]Windows Live SkyDrive [/B]doesn't come with its extension. It gets downloaded as a [B][U]"unknown file type"[/U][/B] file, and I just have to manualy rename it and add [B]".exe"[/B] everytime so it can be recognized. Although I keep … | |
Our image upload form always returns the error message, "Invalid file. Please click the 'Back' button on your browser and try again." Here are the basics. ==HTML FORM== [CODE=HTML] <form enctype=="multipart/form-data" action="phpscript.php" method="post"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="file" name="uploadedfile[]"> <input type="submit" value="Submit" /> </form> [/CODE] ==PHP SCRIPT== … | |
Hi, I'm a newbie to programming in general. I want create two functions to read and write dat from one file to another file. Function read will read dat from file to buffer, and funtion write these data from buffer to another file. These functions work parallel, it means: Function … | |
I'm trying to parse xml file and convert all the unix timestamps in it to datetime... [QUOTE]<Sample> <TimeStamp>1291052077</TimeStamp> blah blah blah blah </Sample> <Sample> <TimeStamp>1291052077</TimeStamp> blah blah blah blah </Sample> </Content>[/QUOTE] [CODE]import fileinput file = raw_input("Enter file: ") file = open(file, "wb+") for line in fileinput.FileInput(file,inplace=1): if "TimeStamp" in line: … | |
I have a tcp client - server implementation running in the same program, on different background worker threads. There will be instances of this program on multiple computers so they can send and receive files between each other. I can send files sequentially between computers using network stream, but how … | |
Hello there! So I have an assignment where I am given a text file with customer information that I need to convert into a "label" format. The original file has caret (^) symbols marking the different lines to be organized. I have the input totally finished, the only thing I'm … | |
Hi, I created a data file, which seems to work perfectly, but as far as reading it into an array is where I get stuck. It should be 20 random #s 1 to 99 read into this array in a single line. In my data file, they are all on … | |
Hey all, I'm trying to write a batch file to parse a text file I have. Here's the pseudo code I'm trying to pull off: Example makefile.txt: [quote] text text text text text text text text text text text text text text text text text text text text text T1 … | |
Hi, I'm a newbie to programming in general and I'm really struggling with working out how on earth to do this! I am aware of how to open the stream and read the text file using fscanf, however I want to store the text in that file into a string … | |
I am working on reading data from a file into a struct array. The first line of the file tells how many users there are, then the following lines are the username, password, and a pincode.So the file is setup as follows: 15 mah123 happy 1234 bah123 moody 4567 ...etc … | |
First off, I know I have a few other errors besides the sorting code. I am working on figuring those out as well. I need to sort the names in the file alphabetically. I did put a code which I thought would work, but doesn't. Lines 39 through 50. [CODE] … | |
Ok, I'm not new to C++ but I am used to running a g++ compiler vs Microsoft's VS C++. I understand what this error should mean. It should mean that I'm missing a ';' on the line before or in the class Polygon. I can't seem to find anything wrong. … | |
I have an application that allows the user to open a file by clicking file -> open. The thing I'm trying to do is read the text file...but I don't know how to assign the user defined text file that the user opened to an object. I guess because I … | |
I have a website that allows people to come an upload images. When that person uploads an image it renames it according to who is uploading it. So every time that person logs on and changes his image, it will overwrite the old image. That person will only have one … | |
I need to do a program about: ask the user keep typing word until the word "stop" has been typed. my teacher said we need to add a class called Input. and he give the code to me. I have no idea how to use this code..any one can help? … | |
Hi I want to download a zip file (xml file in zip - size more than 50mb) which is in another website to my server using PHP scripting. That particular file is updating daily in that site, so i need it to download and use it daily basis. any help … | |
Hello i want to create a file crawler that lists all files in hard disk using directory functions in C i have been able to list files in one directory only and haven't been able to crawl through other directories and sub-directories this is what i have so far. [CODE] … | |
Hi all, I operate a web directory and made it so that other websites can install it and pull the categories and links from my database (an effortless web directory). I recently discovered I could install it in my FaceBook account too very easily. All that someone else needs to … | |
hi, can someone help me started with how to write a program that remove the comments from an input cpp file? I am not even sure how to declare the function, like what would be the parameters? and if I use ifstream file; file.open("text.cpp") will the program treat that as … | |
I use Visual studio 2008 I use MySQL 5.1 I have created een database (test) table (table1 ) with field (Images) Data Type mediumblob size The maximum length of mediumblob is [COLOR="Red"]16777215[/COLOR] (2^24 - 1) characters I want to Check file size before save in MySQL table1. [COLOR="Green"]I want to … | |
I need to write a code in which i want to create each file for every iteration of a loop add data into the file. also the filename should change every time. for example: familyname1_parts.txt for 1 iteration for second familyname2.parts.txt for 2 iteration and so on.. [CODE]try { out … | |
Hi all, So I have reached a kind of impasse on my current project. I'm trying to make a program that can function like a phone book, loading information from a file into a binary search tree and performing operations on said information. The issue I'm having appears to be … | |
The C++ I/O system supplies an interface to the programmer that is independent of the actual device being accessed. This interface is known as stream. The I/O system contains a hierarchy of the stream classes used to define various streams to deal with the console and disk files. These classes … | |
Hi I'm Indrajeet. I was writing a program in VC++ 2010 Express for file manipulation, and after finally getting all the syntax errors out,my code looks lie this: [CODE]/********************************************************************* This is a program for file manipulation in VC++ Created by Indrajeet Roy *********************************************************************/ #include<conio.h> #include<stdio.h> #include<stdlib.h> //Protoype of the functions … | |
[CODE] void RB_number() { int roomnumber; string category; string type; string status; float rate; int roomid; //Try,catch and throw statement for exception handling to catch errors that are inputed from the user try { cout<<"\n\n\t\t\tEnter the Room ID you wish to view:"; cin>>roomid; if(roomid < 0) throw "Error"; } catch(string) … | |
Hi, I need to be able to upload a photo from a datagridview. I am using the C# ready database (I don't know what excatly it is called. But I have made a login page using login control and created a few users). I have added a new table or … | |
I have looked this up on internet and no answer yet!!! I have a paged with a loginView which has a button and a fileupload control in it. When I double click on the button to add some commands I can see that the program can see the button and … | |
Hi I am trying to create a program in java which will scan for words within a text file. The program will scan the list containing a bunch of words in every line some words may be repeated. The program should scan the text file when I input a word … | |
i am doing a work that use srt(subtitle file) what i support to do is in command promt user can type: video title -u 3000 subtitle name after that the subtitle will appear 3 seconds after the actor speaks this is wat i have so far: [CODE]#include <stdio.h> #include <ctype.h> … |
The End.