6,015 Topics

Member Avatar for
Member Avatar for Missnat71

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 …

Member Avatar for TrustyTony
0
154
Member Avatar for acrocephalus

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 …

Member Avatar for acrocephalus
0
146
Member Avatar for mgd00tz

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 …

Member Avatar for NormR1
0
1K
Member Avatar for wkalo
Member Avatar for kshitij tyagi

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.

Member Avatar for kshitij tyagi
0
107
Member Avatar for jiraiya

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. …

Member Avatar for EnochEnglish
0
431
Member Avatar for VBNick

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 …

Member Avatar for VBNick
0
660
Member Avatar for metalix

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 …

Member Avatar for edup_pt
0
211
Member Avatar for Ims333

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 …

Member Avatar for Lusiphur
0
98
Member Avatar for SashaC

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 …

Member Avatar for JamesCherrill
0
180
Member Avatar for anjoz

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 …

Member Avatar for Adak
0
84
Member Avatar for LloydFarrell

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 …

Member Avatar for LloydFarrell
0
86
Member Avatar for yurixzach

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"); …

Member Avatar for NormR1
0
138
Member Avatar for Sarkahn

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, …

Member Avatar for Sarkahn
0
1K
Member Avatar for vlad44

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 …

Member Avatar for vlad44
0
148
Member Avatar for gbudiman

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. …

Member Avatar for chrishea
0
185
Member Avatar for Sandeep929

Write a program in any language and use any 5 file operations in that. Also write the output of the program?

Member Avatar for Lusiphur
-2
75
Member Avatar for MidiMagic

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 …

Member Avatar for david00potts
0
105
Member Avatar for vlad44

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 …

Member Avatar for vlad44
0
113
Member Avatar for lakarr

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 …

Member Avatar for lakarr
0
316
Member Avatar for adaniel058

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 …

Member Avatar for adaniel058
0
368
Member Avatar for Rocky111

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 …

Member Avatar for Ancient Dragon
0
150
Member Avatar for patrickm129

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: …

Member Avatar for patrickm129
0
210
Member Avatar for KillerOfDN

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 …

0
120
Member Avatar for blah32

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 …

Member Avatar for blah32
0
135
Member Avatar for atzaman

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. …

Member Avatar for atzaman
0
299
Member Avatar for turnerca902

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" …

Member Avatar for turnerca902
0
455
Member Avatar for Sunshineserene

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? …

Member Avatar for Sunshineserene
0
424
Member Avatar for Griff0527

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 …

Member Avatar for Griff0527
0
258
Member Avatar for Rocky111

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 …

Member Avatar for Rocky111
0
90
Member Avatar for dhruv_arora

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 …

Member Avatar for p@rse
0
133
Member Avatar for rayborn66

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" …

Member Avatar for rayborn66
0
289
Member Avatar for parijat24

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 …

Member Avatar for TrustyTony
0
98
Member Avatar for maria99

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 …

Member Avatar for maria99
0
176
Member Avatar for jt86442

[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 …

Member Avatar for NormR1
0
92
Member Avatar for codepenman

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 …

Member Avatar for codepenman
0
217
Member Avatar for paulsmith002

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 …

-1
56
Member Avatar for dumb-one

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. …

Member Avatar for dumb-one
0
354
Member Avatar for scholar

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 …

Member Avatar for NathanOliver
0
134
Member Avatar for jitupatil_2007

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 …

Member Avatar for boss.deepak
0
2K
Member Avatar for sastudent

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'])) { …

Member Avatar for pzuurveen
0
129
Member Avatar for YasaminKh

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 …

Member Avatar for YasaminKh
0
111
Member Avatar for TommyRay

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 …

Member Avatar for TommyRay
0
152
Member Avatar for becon

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 …

Member Avatar for becon
0
717
Member Avatar for arithehun

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 …

Member Avatar for arithehun
0
102
Member Avatar for ajwei810192

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 …

Member Avatar for ajwei810192
0
158
Member Avatar for someh0w

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 …

Member Avatar for Tariq14639
-1
161
Member Avatar for Chosen13

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 …

Member Avatar for nbaztec
0
133
Member Avatar for akssps011

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 ?

Member Avatar for griswolf
0
48
Member Avatar for Mahamuni

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 …

Member Avatar for rch1231
0
68

The End.