6,015 Topics
![]() | |
Hello, I have an assignment due tomorrow and getting help by bugging you guys is my last resort... I have tried everything else. I'm extremely new at programming and taking my first course in Pascal Delphi. I'm using Delphi 6 and my assignment consists of using data within a .txt … | |
Hello! I am trying to write a piece of code to open a file using a 'while' loop. It should ask for the file name and, if it does not exist, ask for it again. This is the code: [CODE]while True: try: fhand = open(markFile) except: print 'File', markFile, 'cannot … | |
import java.io.EOFException; import java.io.FileInputStream; import java.io.IOException; import java.io.ObjectInputStream; public class ReadSequentialFile { private ObjectInputStream input; public void openFile() { try { input = new ObjectInputStream( new FileInputStream("clients.ser")); } catch (IOException ioException) { System.err.println("Error opening File"); } } public void readRecords() { AccountRecordSerializable record; System.out.printf("%-10s%-12s%-12s%10s%\n","Account", "FirstName", "LastName", "Balance"); try { while … | |
Hi There Is There A Way To Make Access File As Exe File Thanks In Advance | |
Hi all.. I want to know the file descriptor of a file that I have opened in my program. I know open(char*,int,int) returns a file descriptor. What if use fstream out("...").. Is there any way to know the file descriptor this way?? thnx. | |
Hi everyone, I have a program that displays Chinese and Japanese characters. I've written the program inside Netbeans and it works fine. But when I use the program as an executable jar file, as built in the dist folder by Netbeans, the Chinese and Japanese characters are displayed as nonsense. … | |
I just finished a small winsock program for sending files, but its soooooooooooooooooooooooooooooooooooooooooooooooooooooooo slooooowwwwwwwwwwwwwwwww:yawn: so I am hoping someone here may be able to offer me some advice. so far, the program works as follows: 1. User1 chooses a file and attempts to send it. 2. User2 chooses to accept … | |
Hi there. I am looking to create a script in php that will get an image from an upload form and upload it to a site using ftp. It needs to save the original image in the site images/full/ and also create a proportional image thumbnail (100x100) in images/thumb/ What … | |
So, I'm attempting to make a program that searches online for a file, downloads it, then in the file that is downloaded has like something like this: [code=text] None Yet! (Sorry, but there is nothing yet!) [/code] Then on the right of the listbox there is a richtextbox that I … | |
I have two issues with my code: 1.When I run the code the components of the GUI are very large. I have attached a screen shot of what it looks like. I'm not sure how to change the size. I've tried using: nameOfButton.setSize(12,12); but that doesn't work. 2. I'm new … | |
Hey im kinda new in file handling so can you guys help me out im having a hard time delete data from my .txt file the one here in my code workes but when I example [CODE] printf("Enter Record to be deleted: "); scanf("%s",del); if(strcmp(line, del) !=0) [/CODE] the data … | |
Hi, I am trying to upload a single image but I keep getting an error that is at the bottom that tells me the upload failed - Its really annoying & I have been going round in circles for days now - here is my php [code] <? //Include database … | |
Hi... I really have a big problem in this program... I dont know how to properly read a user input from a text file. I will really appreciate your help. thanks. [QUOTE]import java.util.*; import java.io.*; //--------------------------in this part is my problem----------------------// public void openFile() { File myFile = new File("students.txt"); … | |
Hello. Could someone please help me understand what's going on with this code? What I'm trying to do is read each line of a file into a vector<char const *>. I feel like the answer is probably extremely obvious but I just can't figure it out. [CODE]int main( int argc, … | |
hi everbody, i;ve made a file of size 128MB and fill it with nulls except for a part whose offset is (655424) i fill it with integer numbers from 1 to 129407 then i try to read an object of structure from it where that structure consists of four integer … | |
So this is the scenario. I provide a link to an Excel file. All the users are intranet user, so security is not a concern here. When the user clicks the link, it will pop up dialog to open/save with Microsoft Excel. Users are currently able to open file correctly. … | |
Write a program in any language and use any 5 file operations in that. Also write the output of the program? | |
The W3C validator site is not working right for me. A few other sites (but not many) also say the file I sent is blank. Other sites are working with no troubles, and receive uploads normally. The facts: - Two different computers are doing the same thing. - Both computers … | |
hi all, i was trying to write to a pre existent binary file but every time it would change the size of file and remove all of its contents so what i should i do????? here is an example to what i'am trying to say(it is not exactly the same … | |
Hello! So I have a program where I need to open a file, pass the reader into a method, and then within the method read from the file. Then when control shifts out of the method, I need the file reader to be able to pick up where the method … | |
I have a problem where I need to be able to create an array using the data from the text file. The first line of the file is the array size and the following values need to be put into structs. There may be more than one array per txt … | |
Hi, I am trying to solve a problem. But when I execute it, it is just like halt and not further processing...... Here is my program function [code] void utility() // Calculate the utility for users for both period Fun5 { double x,y,z,utility1,utility2; double delaycost = 10; ifstream inFile3,inFile4,inFile5,inFile6; ofstream … | |
Hello, I recently learned a new batch command and I was wondering if I could make a batch file from at root batch file... Ex: [CODE]echo pause>\test.bat[/CODE] This code makes a batch file that has the command pause. Now would I make a multi-line batch file using this code? Ex: … | |
Hey guys, I have a domain and sub domain set up using hosting services from data flame, the sub domain is set up as a physical sub domain. The sub domain hosts the CMS so I need to upload (product) images from there to the main domain. I spent a … | |
Is there any built in functionality in python as to rename files smartly in windows. I am using os.rename to move files to a higher directory. The problem is, the directory I move the file to could have a file that has the same name. I want to do what … | |
Hi guys Wondering if someone could give me a hand with another problem I'm currently having. A little background first... I'm trying to pick up a daily report which is in XML format via a URL. I then need to parse that data and insert it into a MYSQL table. … | |
Hi everyone, I have a fairly simple problem, but having not used python in awhile, I just can't seem to get things working. Basically, I have a text file with a number of comma separated fields (attached). What I want to do is split the string, and extract the "File" … | |
Hi there, I am currently doing a bioinformatics project on dynamic programming. I need to read a text file, and extract the information in it and use the information in it for my dynamic programming java codes(both java codes must be together). May I know how to extract the information? … | |
![]() | I've searched the C++ forums and cannot find anything that relates to my question. I am writing a program (for class) that opens a txt file and reads doubles from the file, then computes the standard deviation of the numbers in the file. In order to do this, I am … ![]() |
I am new to C++. I have a problem regarding access specified elements from a text File. I have two File containg the random sorted integert values. and an Array with some size. For exapmle if array contain 10 elements and files will contain random number upto 10 with no … | |
I wrote a program and created an object with fstream. Eg. [CODE] fstream f1; f1.open("s.dat",ios::out|ios::binary); f1.close(); [/CODE] Generally if there's no file such as s.dat, then it creates a file by the name but it it's creating one instead it exits the program. I have to then manually create a … | |
Hi, I am having a problem with using file input/output streams in this program. [CODE] #include <fstream> using std::ifstream; using std::ofstream; using std::endl; int main() { ifstream inStream; ofstream outStream; inStream.open("infile.txt"); outStream.open("outfile.txt"); int first, second, third; inStream >> first >> second >> third; outStream << "The sum of the first3\n" … | |
Hi , Actually I have just to copy some specific files from a directory. As there are 5000 files and I have to copy only 300. so I just want to make program which read the name of the file given in text file and then copies those file from … | |
Hello, I have writen a C++ program to read 37 text files. The content of the text file is interger numbers. The program was working fine in VC++ 6.0. Now i could not find the free version of VC++ 6.0. I downloaded the free version of VC++ 2008 expression edition … | |
[B] Hi, i written a code for delete particular file which it was saved in some folder "temp" which it was shown in the below. [CODE] try{ java.io.File objFile = new java.io.File("F:/temp/FirstPdf-022.pdf"); objFile.delete(); } catch(Exception e) { } [/CODE] In the above code, i delete the file "FirstPdf-022.pdf". But i … | |
Hi everybody, I would like to know how can i read the header of all sort of of files. to be more specific, i want to write a function in c# that returns header of any local file. I wanna call it like this giveMeHeader("c:\folder\mytextfile.txt") or giveMeHeader("c:\folder\song.mp3") and that returns … | |
How to Use TS File Converter I was always confused about how to put ts videos from my big Canon into my small ipod touch in order to watch my favorite movies. Fortunately my friend recommended me a very useful [b]Aiseesoft [url=http://www.tsconverterdownload.com/ts-file-converter.html][u]TS File Converter[/u][/url][/b] with multifunction. By now I can … | |
Hello everyone. I am trying to write a simple program that shows me at a glance what services were given to my clients over the last year. I am trying to teach myself C++ as I go. The problem I am having is reading a text file into a class. … | |
Hello friends, I am working on a problem where i need to dump huge amount of data from a file into a tree for analysis. The data in the file would be in specific format something like given below: node1 child1 child2 child1 child3 child4 child2 child5 child6 Since there … | |
hi experts i have a csv file which look like this country,date,[COLOR="red"]code[/COLOR],time mexico,3/13/2008,[COLOR="red"]92,[/COLOR]00:00:00 mexico2,3/13/2008,[COLOR="red"]5214[/COLOR],00:00:00 mexico2,3/13/2008,[COLOR="red"]5214[/COLOR],00:00:00 i am reading the file like this [code] StreamReader sr = new StreamReader(@"C:\Documents and Settings\jitendra\Desktop\RIC_SELL_080318.csv"); string strline=""; string[]value=null; while(!sr.EndOfStream) { strline=sr.ReadLine(); value=strline.Split(','); if(values.Lenght >3 ) { Console.WriteLine(values[2].ToString()); } } [/code] so on doing this i … | |
Me again (Huge Project...) This is the code for my image upload, but it is not working... I also want to set some parameters such as file size and to make sure that only photos are uploaded. The tutorials on the web is quite confusing...help please. Thank you [CODE]if(isset($_POST['submitted'])) { … | |
Hi, I'm writing a code that takes a file name from user and opens it if it exist and if it doesn't asks for another file name. What i wrote is this: [CODE] #include <iostream> #include <string.h> #include <string> #include <stdlib.h> using namespace std; int mani() { string input; cout<<"please … | |
Hi, I am using VS2008 and for the project I am creating, I have a "settings" text file I am using to save user defined settings like color theme, homepage, etcetera. It works fine, however, I am unsure as to how to handle the eventual distributed apps' destination folder/file. Creating … | |
Dear all I would like to read every file in a directory, if each file contains a line 'KAC 50' I will write to an output file. My code below write all the out output into only 1 file. How can I have many output files corresponding to the input … | |
I have a question: Is there any tutorial or way I could create a batch file that scans the folder that it's in, and then prompts you with an option of whether to delete any (C++, for example) files that don't begin with a command line, e.i. doesn't start with … | |
Hi, I have the code as in the following: [CODE] <?php $name= "Test"; $phone= "123-456-7890"; $email = "myemail@mymail.com"; $comments = "Test Only"; $string = "<message>\n<name>" . $name . "</name>\n<phone>" . $phone . "</phone>\n<email>". $email . "</email>\n<comments>" . $comments . "</comments>\n</message>"; //If file exists. append, otherwise create $file = "messages.xml"; $fh … | |
Hey guys Im new to this forum, I love learning new things about search engine optimization and I know alot about it. I am a young entrepreneur on the internet and hope to open my own business someday. {snip} I have found this site that helps alot with seo, it … | |
Well, this project I'm working on is a Pokedex Program for my little sister for her birthday. Anyways, I have a file PokeList.txt, which I want to store every Pokemon next to their ID number. The text file is: [code] 1. Bulbasaur 2. Ivysaur 3. Venusaur 4. Charmander 5. Charmeleon … | |
Hi I want to write a file shredder in C++. What I know is that I need to overwrite things with 0 but I am not very much clear on this. What concepts should I know to program it ? | |
H!..... Can anybody tell me about retrieving lines from file I am working in linux ... And I have one File with some data in it like Filename: Sumit ...info about file ... FileName: Mahamuni ...info about file ... like above .. i wanna retrive filename & its info Please … |
The End.