6,015 Topics

Member Avatar for
Member Avatar for foco

I've been able to open text files, read them and write to them. However, I always have to specify the name of the file before I compile. IE: ofstream myfile ("example.txt"); I've tried to declare a string, and then use that where the name of the file would nomally be, …

Member Avatar for WaltP
0
105
Member Avatar for bogenbroom

I am writing a simple program to take a user-supplied file, read the contents, and output email addresses found in the file. If the user supplied an invalid path/file name, I want to prompt the user to try again. Right now, everything works properly if the first file name the …

Member Avatar for bogenbroom
0
1K
Member Avatar for djm123

Logfile of HijackThis v1.99.1 Scan saved at 9:02:37 PM, on 2/24/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\system32\spoolsv.exe C:\WINDOWS\Explorer.EXE C:\WINDOWS\system32\hkcmd.exe C:\Program Files\Yahoo!\Antivirus\CAVTray.exe C:\Program Files\Yahoo!\Antivirus\CAVRID.exe C:\PROGRA~1\Yahoo!\YOP\yop.exe C:\Program Files\Yahoo!\Messenger\ymsgr_tray.exe C:\PROGRA~1\Yahoo!\browser\ycommon.exe C:\Program Files\Yahoo!\Antivirus\ISafe.exe C:\WINDOWS\System32\svchost.exe C:\Program Files\Yahoo!\Antivirus\VetMsg.exe C:\Program Files\Internet Explorer\iexplore.exe …

Member Avatar for ericbrad
-1
244
Member Avatar for robroy

I tried to post on Mozilla's forum but I ran out of space, so I'll give this a try and thanks in advance... :) Also, I've googled til I cannot google anymore, so please be kind. :D I'm trying to call a .js file in my header where javascript would …

Member Avatar for Troy III
0
1K
Member Avatar for preetg

hi writh ......... thanx for last responses....... i need your help agian plz help me out i have two tables emp_company and at0310 in at0310 having fields: ecardno,atdate,time,IO,serialno,cardrd and ecode. into my text file ecardno,atdate,time,IO,serialno,cardrd record available but ecode not comes from there in my emp_compnay i have filed like …

Member Avatar for preetg
0
93
Member Avatar for jimmiller96

I have a great download script I have been using from: [url]http://www.zubrag.com/scripts/download.php[/url]. It uses the following headers: [code=php] header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Type: $mtype"); header("Content-Disposition: attachment; filename=\"$asfname\""); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . $fsize); [/code] My goal is to call this php …

Member Avatar for jimmiller96
0
120
Member Avatar for polska03

I am only showing the spaceport and fileIO. I want the first line of my txt file to show the number of spaceship to create an array then choose what type of spaceship. I did the best i can and now i am completly stuck its not working. Can Someone …

Member Avatar for javaAddict
0
143
Member Avatar for kohkohkoh

can i know how to save a file name based on the user's input for example: Enter your name : Derrick then i save this input to a file .txt named derrick (derrick.txt) how can i do it? i only know how to use the rename() and delete() function...in the …

Member Avatar for DoEds
0
129
Member Avatar for Notme

Hi, currently im working on a project for uni but i have no knowledge in C at all basically what im trying to do is remove all * !"£$%^&*()- and double spaces from a text file so far i am able to copy the text file so that im not …

Member Avatar for Dave Sinkula
0
1K
Member Avatar for FreakNFlow

I need help with a program. I need to know how to make it so the lines with a -1 will not show up. The code is linked to a file. The file looks like this: 4 112.7 154 115.5 4 116.4 321 -1 72 129.8 321 -1 154 219.0 …

Member Avatar for Salem
0
267
Member Avatar for arunmagar

Hi All, I am exploring on file properties.Specifically I want to know about file icon and other. How does the process of file save is done when we create it first time? And where all properties get save. I want to change that icon file through code for any file. …

Member Avatar for arunmagar
0
187
Member Avatar for Emmett_1981

Hi everyone, I am using the Struts 1 framework to develop a web application for my FYP. So far I have been able to access the properties file from all jsp in my application with example such as the following code. [CODE]<bean:message key="welcome.title"/>[/CODE] I want to have the entire web …

0
173
Member Avatar for kalyanponnala

Hi, I am using cmake to build a visual studio 2008 solution file. When I do all build it works fine, but when I try to run a certain target inside that solution its giving me errors like: fatal error: 'limits.h' file not found 'stdio.h' file not found 'reloc2.h' file …

Member Avatar for jonsca
0
342
Member Avatar for themarval

I'm taking an intro course to C++ and we're covering stack overload and how the library and linker come into play with programming. I have a simple .cpp file called dataType.cpp. The code is as follows [CODE=C] int A; int rtn; int main() { rtn = dataType(A); cout << rtn …

Member Avatar for jonsca
0
173
Member Avatar for preetg

hello everyone i m inserting data from text file into database. .......but the data into the text file is not inserted into database only blank record display in the database.......... my text file is like this: james flower 22 may be i m not giving space delimiter correct... plz help …

Member Avatar for preetg
0
188
Member Avatar for XinJiki

I am working on a homework assignment: File Input to the program is the body of the letter. Keyboard Input to the program is the name and address of the recipients. The file contains all the letter except the names, which are denoted by #N#. This occurs exactly once in …

Member Avatar for Shinedevil
0
254
Member Avatar for gnarlyskim

So I've missed the past week of my C++ class due to the SEC swimming championships being a week long :@, and I've missed the whole topic on file processing. I've been reading the slides and a few tutorials via lovely google searching, but it's a little hazy. Can anyone …

Member Avatar for gnarlyskim
0
147
Member Avatar for MGIndia

i need to create a reply for a msg file i saved on localdrive. I tried doing this and itworks.but the problem is that the .msg file contains images and so when reply is done this images are not got...below is the code i tried for creating the reply fot …

-1
52
Member Avatar for shruti patel

how to save the jpg file into database using file upload control? how to retrive that stored jpg file from database and show on image control. i have table has two fields Id(int),imageData(image).

Member Avatar for mail2saion
-1
109
Member Avatar for Marson

Hey guys, I am trying to write a program that will use command line arguments to detect user inputed keywords in a text file and output how many times the keyword/s appear. The command line should read like this... programname -f inputfile keyword1 keyword2...keywordN The problem I have is I …

Member Avatar for WaltP
0
186
Member Avatar for preetg

hello dr.......... i m trying to store a text file into database below format of text file i hv text file like this: 0100102001110271 0409141151I1476201 0100102001110125 0409141351O1476301 0100101300000030 0409141630O1476401 0100102001110271 0409141631O1476501 0100102001110126 0409141632O1476601 how can store it into my database table att0310 my table fileds: cardno date time IO(in-out) and …

Member Avatar for urtrivedi
0
173
Member Avatar for hitro456

Hi everyone...([COLOR="Green"]read carefully[/COLOR]) I am Developing an application in C#. In which First I create two text files say a.text and b.text. and then fetch data from them ...... Now every day when I run my code for the first time I want to delete these files and recreate new …

Member Avatar for hitro456
0
145
Member Avatar for isralruval

i know the following function is not correct, but its suppose to read a text file(which containts the words "hello all") and pass it to a Vector called V1 and then encrypt it and pass the encryption to a second vector called V2 and finally output the result into a …

Member Avatar for VernonDozier
0
70
Member Avatar for kohkohkoh

Hi guys, as per title above, im at my wits end after a week of thoughts.... i want to download a file from a SSL web to my local(C:\) e.g [url]https://www.abc.com/File/myfile.txt[/url] Scenario: from the web browser(Internet Explorer), i required to login to the site in order to download the file. …

Member Avatar for kohkohkoh
0
1K
Member Avatar for dude1

i need to make a program that reads in a file and list things like the number of characters,words lines spaces tabs etc. anyone know the best way to do this? any help anyone can provide is appreciated thanks

Member Avatar for WaltP
0
100
Member Avatar for newcuser

I am trying to input a text file with twenty unsorted names in it into an array and then perform a bubblesort and output to a new file. The filename for the txt file is names.txt Here is what I have so far....not much...I would appreciate some help the right …

Member Avatar for newcuser
0
2K
Member Avatar for tom384

Hi folks, First a bit of context (Errors are shown at the bottom of the post): I am creating an object viewer for opengl in Visual C++ 2008 Express Edition. I have written a parser which reads the file and stores all the info I want in a Mesh object. …

Member Avatar for tom384
0
358
Member Avatar for OzY360

I don't believe there is a Forum dedicated to Cryptography so I will post in the C forum since the program I've used to decode a base 64 encoded file was written in C. I have been given a base64 encoded file and I have managed to remove the base64 …

Member Avatar for OzY360
0
118
Member Avatar for pranabmohanty

hello everyone., i m new to asp.net. i am using fileupload control in my project. i want the complete file path...in IE i am getting the complete file path but not in Mozilla....in mozilla i am getting the file name only i.e. myfile.xls.......but i want the complete file path i.e. …

Member Avatar for arasan123
0
305
Member Avatar for chu121su12

I am doing upload and download script with php. For the upload part, I store the uploaded file, for example, 'my picture.jpg' above my 'htdocs/' with a random name. e.x.: [CODE] [-] htdocs |--[+] download [-] upload |--abcdef <<-- 'my picture.jpg' stored as 'abcdef'[/CODE] The original file name and the …

Member Avatar for chu121su12
0
440
Member Avatar for prem2

Hi, I need to upload pdf file using php and store that pdf files in certain path.The pdf which is under Acrobat Distiller is uploading successfully.But the pdf files which is under AFPL Ghostscript is not uploaded. coding: echo $_FILES['file']['type']; if($_FILES['file']['type']=="application/pdf") { if(file_exists("$filepath/upload/$basename")) { //file already exists return false; } …

Member Avatar for Atli
0
113
Member Avatar for Pari13

Hello sir, I have problem in getting values of textbox which in .ascx file (user control). at aspx file(the file at which control is added). code is as below. code in .ascx file [CODE]<%@ Control Language="C#" AutoEventWireup="true" CodeFile="attachfile.ascx.cs" Inherits="attachfile" %> <asp:TextBox ID="TextBox1" runat="server" meta:resourcekey="TextBox1Resource1"></asp:TextBox> <br /> [/CODE] code in .ascx.cs …

Member Avatar for Pari13
0
3K
Member Avatar for heroes8453

Does anyone know where I can find information about writing a java application for a file dump utility, a java program that will read a file and display the contents of the file in a byte by byte format? I am lost on this one.

Member Avatar for jwenting
0
118
Member Avatar for free2rhyme2k

Hi there, I'm putting together a simple client and server to receive packets containing video data. Here is the part where data is read. The data packets contain typically around 1000 - 1500 bytes of data. [CODE] int getNoPackets = 0; int packetsWrittenToFile = 0; for (i=0; i<NPACK; i++) { …

Member Avatar for free2rhyme2k
0
2K
Member Avatar for bhagu

Hi, guys.. I am trying to find php script or open source script, for digital goods to sell on static website. My client wants to sell his music online. He wants very simple function for Store. When somebody make successful payment on paypal, the link should re-direct to a download …

Member Avatar for chrishea
0
250
Member Avatar for ilyaz

I need to develop a piece of code in an old legacy Visual C++ 6.0 system. I am invoking a stand-alone executable via a system call. This exe is supposed to create a file if processing goes OK or not create one if it fails. The name of the file …

Member Avatar for ilyaz
0
202
Member Avatar for hmortensen

Hi all, Now I've spend hours on google without findeing a solution to this small problem. I have a running program that uses an access database as datasource. When startet it opens the mdb in exclusive mode. [B]Now the problem:[/B] I need to read (and only read) the data from …

0
67
Member Avatar for adrawat

Hi, Im trying 2 write the contents of a input file to an output file in reverse order using file I/O in C. Is there a more efficient way 2 do it? [CODE] int main() { FILE *fp1,*fp2; char ch,arr[100]; int i=0; if( (fp1 = fopen("input.txt","r")) == NULL ) { …

Member Avatar for adrawat
0
399
Member Avatar for mansi sharma

can somebody tell me how to get file type..of any file..For .txt file file type is [B]Text Document[/B],for doc file - [B]Microsoft Word Document[/B] & so on. Plz help me out,I m not finding anything on the net related to it.

Member Avatar for kvprajapati
0
952
Member Avatar for nocloud

I am having a most mysterious problem which I have been unable to solve after repeated attempts. Perhaps somebody here will be smart enough to figure out what is going on. I am attempting to read a file of this format 19700326.15 71.37 71.50 70.00 70.50 217600 0.89 19700330.15 70.50 …

Member Avatar for Frederick2
0
592
Member Avatar for tchant

Hi All, I have a application that uses Delphi 200 bpl files - I know these can just be put into the c:\Windows\System32 dir and all will work - but is it possible to put them into a directory under the Application eg c:\Program Files\ DGL-Apps\IMS\_sysbpl ? It is just …

0
105
Member Avatar for Metraton

Hello guys! I'm facing a problem with IO using files. Here is the simple code that's kepping me awake: [code]Files::Files() { numbers.open("textfile.txt"); if ( numbers.good() ) { cout << "Object from Files class ok!" << endl; } else { cout << "Object from Files class NOT ok!" << endl; } …

Member Avatar for jonsca
-1
79
Member Avatar for Dewey1040

I wrote a program to compare two text files character by character and its not working probably an easy thing im just not seeing. [code=c++] #include <iostream> #include <fstream> #include <string> using namespace std; int main(int argc, char *argv[]){ string s1; string s2; char c1, c2; if(argc !=3) { // …

Member Avatar for WaltP
0
178
Member Avatar for lein.o16

how can i save the path of the picture i've browsed. i'm using vb.net as my front-end and ms access as my back-end. thanks in advance :)

Member Avatar for Max D
0
222
Member Avatar for dawsonz

I need to create a program that can read a file a user has selected, i'm trying to use this with the HtmlInputFile in Visual Studio. The file then needs to be read and encoded, i've created a class that deals with the encoding and adds +13 onto each letter …

Member Avatar for kvprajapati
0
73
Member Avatar for eldhoksuresh

[B][/B]every time i create a file in java a window opens with created file in it... how to avoid this.... pls help

Member Avatar for jwenting
0
73
Member Avatar for ELBUF

Hey guys, Just wondering if someone can help me out with this. I want to read in a text file (team.txt) and have it implemented into the rest of my code. My program will read in from the file, the number of players and their heights and print out some …

Member Avatar for vmanes
0
137
Member Avatar for eldhoksuresh

in netbeans 6.7 i'm trying to create a text file,say man.txt using code "file fr=new file("man.txt").. code executed fine..but i can't see the file man.txt anywhere where the file is created..pls help me

Member Avatar for eldhoksuresh
0
85
Member Avatar for rEhSi_123

Hello everybody! I am trying to create folder's which will contain files and lastly all these files will contain texts. My problem is that am not able to create this folder into a specific location or pathname!!! Here is the code, please advice accordingly: [CODE] #include<stdio.h> #include<sys/stat.h> int main() { …

Member Avatar for WaltP
0
2K
Member Avatar for emompong

HI! I am working with an image tagger system.. Im done reading the file's properties.. then when i go to code for keywords.. an error exist saying that Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154. I Already added the DSO …

Member Avatar for emompong
0
429

The End.