6,015 Topics

Member Avatar for
Member Avatar for babutche

Hi, I am trying to extend my "Student with the best GPA" program so that it allows the user to sort a file of students based on gpa, name, or credits. The program needs to prompt for the input and output files and also the field to sort on (gpa, …

Member Avatar for babutche
0
468
Member Avatar for xibnoe

I try read a story text file using c. the problem is i want one paragraf in one variabel. i am confuse how much i should alocate the buffer size? [code] #include <stdio.h> int main() { char buf[255]; <<HOW MUCH SHOULD WE ALOCATE TE BUFFER? FILE* fp = fopen("somefile.txt","r"); if( …

Member Avatar for WaltP
0
2K
Member Avatar for MoeZen

Greetings all. Its been some years since I did anything in QB. I need to manipulate a txt file so it can be imported into MSAccess. Problem: The file is already comma delimitted, however each line of text contains multiple records. I need to insert a <return> after every 35 …

Member Avatar for WaltP
0
99
Member Avatar for Mr.UNOwen

So I started doing c programing and now I want to understand how file systems like fat 32 and NTFS works. So I want to know how to create a file transfering program. So here's a few questions.... 1 How do I do it the portable way? -find file size …

Member Avatar for WaltP
0
129
Member Avatar for wombat

Hi Guys This is my first post so please be kind, The problem I have is that I am trying to network my 2 G4's running 9.2,2 together. Both machines are on ethernet and I am using a switch and both ports indicate that they are connected by the lights. …

0
89
Member Avatar for ep2002

Something keeps seizing my computer & I don't know if someone is trying to hack in or what. I have to reboot each time & someone set up my new wireless router & it worked when he set it up, but now it's not, so I'm going straight thru the …

Member Avatar for kylethedarkn
0
159
Member Avatar for petzoldt01

Hey guys, I have a question regarding file serving. I live in a frat house with 50 other guys. We have an email list to communicate, but recently, I have decided that I want to set up some type of file server. A simple FTP server would be great, or …

Member Avatar for paradox814
0
85
Member Avatar for Monsignor

OK, this is the problem: my original file has only one line and that line contains a sentence. I'm supposed to create a new file that will put each word from the sentence in its own line. For example, original file: [code=c]The quick fox jumped over the lazy dog[/code] output …

Member Avatar for Ancient Dragon
0
166
Member Avatar for vicky_dev

I want to read a file which contains a list of integers. The first 4 bytes( or whatever sizeof(int) is ) indicates how many numbers the file has. Suppose I check the file size before reading so that I know I won't encounter EOF. Do I still need to check …

Member Avatar for Ancient Dragon
0
115
Member Avatar for DynamitMsk

Hello, I'm working o a function that takes a file with binary numbers and returns the sum of those numbers. Here's where I'm now [code] int Sum (char *fileName) { char * numEnd; long temp(0); int result(0); string line; ifstream file (fileName); if (file.is_open()) { while (! file.eof() ) { …

Member Avatar for John A
0
110
Member Avatar for GreenDay2001

I am trying to make this program as my school project. This program basically gets data from user store it in an object [I]per [/I]and then saves it into a file PEARSON.TXT. Now the problem is that i am not able to write the data into files I dont know …

Member Avatar for Ancient Dragon
0
210
Member Avatar for sam_daniel
Member Avatar for saurabh_kanwar

Hi Guys, I'm having some problems in importing data from a file into a table. I created this file by exporting data from the same table. I've deleated all the records from the table and now I want to fill it up from the file I've created I'm importing data …

0
73
Member Avatar for Raju5725

HI, I am new to web development as well as ASP.Net....I am trying to design and a develope a web UI....in which I need to transfer file at the client location itself....I mean the provided filename along with the path I need to move that file from one location to …

Member Avatar for Exelio
0
87
Member Avatar for BLADEME

Hi, need sum help... [IMG]http://www.phpfreaks.com/forums/Smileys/default/huh.gif[/IMG] I've created a php file which writes an xml file, and a web page which accepts user input into html buttons' values. What I want to do now is take that information from the html buttons and use the values stored in the html buttons, …

Member Avatar for Puckdropper
0
63
Member Avatar for rbinc

[B]Here's my problem: [/B] The user needs to enter a char/string for a .dat file with a max of 15 characters. I've tried to use both a char and a string to make sure the user enters 15 or less characters. If I use char, and if the user inputs …

Member Avatar for rbinc
0
113
Member Avatar for affiliate7

Greetings, And an advanced "thank you very much" if you can help me :) I just played with the great tutorial from Dave Sinkula [url]http://www.daniweb.com/code/snippet151.html[/url] but I'm having trouble altering it. I want it to read the file, and each one of the lines, and output something like this: [QUOTE] …

Member Avatar for WaltP
0
119
Member Avatar for seth0x2b

Hey guys. Please bare with me since I'm only learning asm for about 48 hours or so.. I've learned enough to open files, read from/write to them... I know how to use the WIN API from within ASM and ..honestly, it's much simpler than C++ (IMHO)... So..I've written this basic …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for mattyd

Last night I took the advice of a DaniWeb member and looked at some posted Python code; this code was based around a card-type game and involved creating a GIF deck, shuffling, then displaying it. My original question had to do with using a Python dict for my GIF images. …

Member Avatar for Ene Uran
0
6K
Member Avatar for noople

Hi all, I'm working in the C language. I've been stuck for 2 weeks trying to figure out how in the world to populate arrays after reading in an input FILE. the input file has numbers and words, I need to write a loop that grabs the integers and stores …

Member Avatar for noople
0
2K
Member Avatar for Goldfish691

Hi there, I'm trying to write a simple encryption program that reads normal text from a txt file - encrypts it using a Vigenère Table - then outputs the results to another file. This process should obviously be reversible as well. I have written this for the encryption part of …

Member Avatar for Goldfish691
0
160
Member Avatar for HailttRedskins

Sorry, it should say FORM I was wondering how I can do a upload file. I run a fan website for the Washington Redskins, and what I want to do is have a section where the members can submit there video or picture materials they've made to my site. However, …

Member Avatar for codejunkie
0
130
Member Avatar for ekon32

I did something very dumb went on an untrusted website to download something and got a ton of viruses and trojans. My Zonealarm, CA Anti-VIrus, Anti-Spy, and Ad-aware caught a lot of things, but this goddam Zlob virus keeps on existing. I keep getting popups that I never got before …

Member Avatar for Colin Mac
0
129
Member Avatar for bullet102

Hi Guys I am new to C# programming and I wandered whether anyone could help me regarding this error message below: C:\MyFirstCOMTemplate\COM\PushTemplateC\PushTemplateC.cs(86): 'PushTemplateC.PushTemplateC.PblReadFile()': not all code paths return a value I am simply trying to get the text below: My name is Neil Rastogi I am aged 25 to be …

Member Avatar for JerryShaw
0
164
Member Avatar for Declan123

I have been trying to create an excutable jar file. When trying to added new data to the manifest file it give me an error say 'invalid header field name: |||Manifest-Version:'. Iam using the command line: jar -cfm App.jar META-INF\MANIFEST.MF mainui\*.class the mainfest file looks like this Manifest-Version: 1.0 Created-By: …

Member Avatar for Declan123
0
175
Member Avatar for nirmala.s

Hi folkz, Need help in writing a C program..The scenario is as follows: We need to copy a log file frm the database to a txt file and the txt file should automatically get updated whenever the log file is modified... Also there shld be a facility to filter data …

Member Avatar for Ancient Dragon
0
112
Member Avatar for Sin-da-cat

OK, so the part of my course about files is over, but now I am wondering: if you have a file with, say, a bunch of names (each in its own line), is it possible to use "C" to make a new file with the names aranged alphabetically? For example, …

Member Avatar for vegaseat
0
387
Member Avatar for balgarath

(c++) Ok so I understand how to use the system function, and how to output to a file. How do I pipe the output of say system("last") to a file? system() returns an int, so if I mystream << system("last") it will put an int in the file. I need …

Member Avatar for balgarath
0
164
Member Avatar for boujibabe

I working on a program that summerizes text documents and I need a way to find the length of the longest and shortest lines in the file and display it in a log file. I've already done a character count and line count. Also say I wanted to created different …

Member Avatar for boujibabe
0
333
Member Avatar for Dortz

Setting a static page file is mainly a tip that should be reserved for the computer user who has forsaken friends and family for the realm of PC gaming, but anyone can do it, especially if you do video editing, or are a power user of any kind. the premise …

Member Avatar for goldeagle2005
0
1K
Member Avatar for matrimforever

i need a function: readData() to read in scores from a file. I can open a file up, but not sure how to code it so input from the user opens any file. [code] int readData() { cout << "Please enter in the path to the student score file: " …

Member Avatar for Ancient Dragon
0
85
Member Avatar for Sin-da-cat

I'm pretty much new to using files, so I'm not sure if this is a banale question. Here's the assignment: "[I]Each line of the file dec.txt contains a whole number (>0). Write a program that creates a file called hex.txt. Each line of this file is to contain a string …

Member Avatar for Sin-da-cat
0
214
Member Avatar for earlyriser

Hello. I'm having problems filling an array from a text file. I cann't figure out how this works with getline. I can read read and store ALL the lines, but what I'm trying to do is to store ONLY the names of the employees (from the text file) to a …

Member Avatar for earlyriser
0
202
Member Avatar for Barefootsanders

Hey guys. I have a problem. I have to read in 2 arrays from 1 file. I know how to read in an array with known elements but this time the number of rows/columns are in the file. The first line has the dimensions of the array(rows columns) then the …

Member Avatar for ~s.o.s~
0
112
Member Avatar for Mr.UNOwen

How do you create a text file in c with any file type name in the back, such as file.abc or file.gcs or any other dot something. I'de like know how to do it the portable way, but if not, just let me know how to do it for win …

Member Avatar for Mr.UNOwen
0
28
Member Avatar for naheed

i m student .i m doing my final project. i really found this forum to be very useful for me. my project is related to screen capturing i want to create a file with .swf extension from images in a directory and a wav file. simply u can say that …

Member Avatar for antonybls
0
164
Member Avatar for Savage221

Hello, well, as the title states, I need to take the file input and store it into a string. It seems simple enough, just setup a for loop going through the total number of characters in the file input, or just do a while !EOF loop, the part I'm not …

Member Avatar for andor
0
90
Member Avatar for chris3000

[B]Hi :) I would expect to see an image from the database with that code:[/B] <% set conn=server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.jet.OLEDB.4.0" conn.Open "F:/projet/test1.mdb" set rs= conn.Execute("SELECT photo FROM photos where ID=1") Response.ContentType="image/jpg" Response.BinaryWrite(rs("photo")) conn.Close %> [B]or [/B] with dsn(data source name) link in contral panel <% Set conn = Server.CreateObject("ADODB.Connection") conn.open "WinConnection" …

0
71
Member Avatar for Dingo_Tristan

Hello there! It's been about a year, and recently my PC has started running the CPU at higher than normal levels, and I think I may have a virus of some sort. I learned a lot from you fine folks the last time around, and I'm hoping you can help …

0
46
Member Avatar for Manas Kumar Sen

The following profram is not compiled. Why? Please help me! //This is a file copy utility// [code] #include<stdio.h> #include<conio.h> main(int argc, char argv[]) { FILE *fs,*ft; char ch; if(argc!=3) { puts("Insufficient Arguments!"); exit(); } fs=fopen(argv[1],"r"); if(fs==NULL) { puts("Cannot open Source file"); exit(); } ft=fopen(argv[2],"w"); if(ft==NULL) { puts("Cannot open Source file"); …

Member Avatar for Nick Evan
0
82
Member Avatar for sgriffiths

Hello all I am trying to create a script to do the following: I have a file which contains the following STEPHEN;CHRIS:PETER>JOHN| What i need to do is read this file in and be able to seperate the above names into variables based on the delims. ie Script something like …

Member Avatar for jim mcnamara
0
107
Member Avatar for Mushy-pea

Hello again. I am writing a bulletin board script at the moment (Perl BB sound good :p )? While writing some code to update a text file I encountered this situation. I need to open the file, append data to the end, then set the write offset to a particular …

Member Avatar for MattEvans
0
342
Member Avatar for william_stam

If i read excel records in asp using a recordset (to put those records into something a little better) it continues to use the old file. step 1 - upload excel file to the server step 2 - read excel contents writing them to database (I don't consider excel a …

Member Avatar for cancer10
0
148
Member Avatar for muhaa

Hi guy's i was wondering if any one can help i wat to make a random file generator which will be able to create random file's with random string's in them also i wilkl have to be able to control the file extension..Its for a file fuzzer im working on …

Member Avatar for muhaa
0
133
Member Avatar for MisMisB

Logfile of HijackThis v1.99.1 Scan saved at 7:13:59 PM, on 10/18/2006 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe C:\WINDOWS\system32\services.exe C:\WINDOWS\system32\lsass.exe C:\WINDOWS\system32\svchost.exe C:\WINDOWS\System32\svchost.exe C:\WINDOWS\Explorer.EXE C:\WINDOWS\system32\spoolsv.exe C:\Program Files\CyberLink\PowerDVD\PDVDServ.exe C:\WINDOWS\system32\igfxtray.exe C:\WINDOWS\system32\hkcmd.exe C:\Program Files\Digital Media Reader\shwiconem.exe C:\PROGRA~1\mcafee.com\agent\mcagent.exe C:\Program Files\McAfee\McAfee AntiSpyware\MssCli.exe C:\Program Files\Common Files\AOL\1159328626\ee\AOLSoftware.exe C:\Program Files\Common …

Member Avatar for MisMisB
0
86
Member Avatar for Vetsi2103

I have or had spy quake2 some how the damn thin dled itself on my comp i dled adaware and i think it removed it now i am getting crazy pop ups about computer error and this annoying triangle saying system alert trogan spy.win32 @mx and it wants me to …

0
35
Member Avatar for andriss

[COLOR=#000000]Good day,[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I need help from you.[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I have to split and create output files by every 30.000 recordings. [/COLOR] [COLOR=#000000]Example ,[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]Input file has 150.000 (transaction.txt) recordings of bank accounts transactions.[/COLOR] [COLOR=#000000]The C code has to split this file and create output files …

Member Avatar for Ancient Dragon
0
100
Member Avatar for techkar

Hi experts, here in my project ,there is a situation like, to read an Excel file and store in a database using java. I have an excel file as 10 columns and this is a daily report by our sales team. So the requirement is to read that excel file …

Member Avatar for iamthwee
0
132
Member Avatar for pleal

I have googled for anyoneexperiencing the same error. Apache2.2 works fine as stand alone. Now, when installing php5.x and after making the changes in the httpd.conf file for Apache, Apache doesn't read the php file. Changes in httpd.conf file were : # For PHP 5 - Added on Oct. 13 …

0
93
Member Avatar for dss

Hi, I am just using a upload script and need to specify that only audio files are uploaded no video or images or any other file. Only audio files must be loaded. Can any body provide me the solution for that. Thankyou SCRIPT using <? // you can change this …

Member Avatar for MCP
0
78

The End.