6,015 Topics

Member Avatar for
Member Avatar for klabak85

Hi all, I'm a completely new user of python (and by new I mean I started using it yesterday) but I've been programming for a couple of years now in other languages such as Java. I have a question to ask you all. So what I want to do is …

Member Avatar for jice
0
150
Member Avatar for rajaseeth

Hi, I have the following string in a XML file.. [CODE]<pre>&lt;/BODY&gt;&lt;/HTML&gt; ------_=_NextPart_002_01C84D7E.9133E008-- Content-Disposition: attachment; filename="footer.txt" Content-Transfer-Encoding: base64 G:\Test\Attach\footer.txt --------------Boundary-00=_BLD1cvEPKmuNkgPvUNY3-- Content-Disposition: attachment; filename="Press.xls" Content-Transfer-Encoding: base64 g:\Test\Attach\Debankan\Press.xls ------_=_NextPart_001_01C84D7E.9133E008-- </pre>[/CODE] I will pass the filename and i want to get the path from the above string.. [B]For ex.. if i pass "footer.txt" i …

Member Avatar for ddanbe
0
148
Member Avatar for van2006

hi i am new to this forum. i am able to add image file(a.jpg) to mysql databse. when i see the file in a databse . i could see the file.but when i try to retrive that file ia m getting error.can anybody help me thanks

Member Avatar for nurnamira
0
332
Member Avatar for JungWoo

hi all, i am done with my project for lexeme but i only worked on cpp, i wonder that can i make my header file based on my cpp file? thank you this is my code [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main () { char …

Member Avatar for Dave Sinkula
0
141
Member Avatar for jdam7459

I am having trouble getting Windows to open the file "results1.txt" in the directory "Result Sets". When I run it I get the error: "results1.txt" is not a recognized as an internal or external command, operable program or batch file. But when I check to see if the file is …

Member Avatar for marco93
0
132
Member Avatar for AbiSuren

The following program works well.But it cant identify any null values present in the csv file. For Example if csv file contains "Suren,Java,Dojo,Hibernate,,Spring,SOA" .I reads first four strings properly but for fifth string instead of reading the null value it reads the sixth string. Pl. help. import java.io.DataInputStream; import java.io.FileInputStream; …

Member Avatar for masijade
0
154
Member Avatar for lotrsimp12345

#include <iostream> #include <stdio.h> #include <fstream> #include <string> using namespace std; int main() { int number_Of_Lines_To_Print_From_End=0; char file_name[20]; streampos length; cout<<"enter file name that needs to be opened\n"; cin>>file_name; cout<<"enter number of lines to print from end of file\n"; cin>>number_Of_Lines_To_Print_From_End; fstream file; file.open(file_name, ios::out ); if(file.is_open()) { cout<<"the file opened\n"; …

Member Avatar for lotrsimp12345
0
134
Member Avatar for gilpin

Hello everybody, I want to create a program that removes the first line from a text (csv) file (which is a header). I used this code: [CODE] string deleteline = "Name, ID, D.O.B, etc., etc."; //contains the Header information to be removed string line; ifstream sup; sup.open("DOWNLOADED_DATA.csv"); ofstream temp; temp.open("temp.csv"); …

Member Avatar for gilpin
0
173
Member Avatar for marstan

I keep getting redirected to goofy search engines and I have not been able to download spyware stuff properly. I have ran spyware and it has not fixed the problem: Here is the HIJACK THIS log file: Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 9:55:35 AM, on 9/15/2009 …

Member Avatar for jholland1964
0
114
Member Avatar for julio gomez

Hi, I have a corn.php file that runs automatically every day and one of the functions is to send an e-mail to certain users. The problem is that the e-mails are being sent twice. I can't find anything wrong with the cron file, but checking the access_log.processed file of the …

Member Avatar for julio gomez
0
157
Member Avatar for jwill113

[code] #include <string> #include <iostream> #include <fstream> #include <list> using namespace std; #include "mono.h" int main() { int e; string m; string z; string fname; mono * mptr; mono * mptr2; list<mono>P1; list<mono>P2; list<mono>::iterator P1itr; list<mono>::iterator P2itr; cout<<"Menu"<<endl<<endl; cout<<"A Enter two polynomials from a file"<<endl; cout<<"B Enter two polynomials via …

Member Avatar for jwill113
0
104
Member Avatar for rejisha.m

Hi all, i am new in php. i have a doubt regarding the file uploading. What my requirement is -- process the file upload as a background process using the shell commands like system() or exec() .How can we do this? From the site --php.net -- i got the following …

0
42
Member Avatar for Abibina

I m creating the page which contains username n password.. I dont know how to store the username n password in a file n to display an error message if the username or password is wrong .. how to do this.. ll anyone explain me using a simple program..?

Member Avatar for javaAddict
0
114
Member Avatar for richnimbix

I'm a newbie to python. After opening a file in 'r' mode then using the approach below. f = open( '/g.txt','r') for line in f: I find a pattern I'm looking for in a text file. Then I use f.tell() to record the file position. However, I think due to …

Member Avatar for woooee
0
79
Member Avatar for rclinebell

I need to put data from a csv file into an Excel worksheet. File is called "DTN.csv" and the Excel file is "BlendPrice" and the workbook is "DTNPrice". The DTN.csv file has 12 fields seperated by commas. (I have been copying and pasting the data in now. I need to …

Member Avatar for vb5prgrmr
0
156
Member Avatar for haven_u

hi there, need someone to help me fix my commputer. Logfile of HijackThis v1.99.1 Scan saved at 8:30:36 PM, on 9/12/2009 Platform: Windows XP SP3 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16705) 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:\Program Files\Common Files\Apple\Mobile Device Support\bin\AppleMobileDeviceService.exe C:\Program Files\Bonjour\mDNSResponder.exe C:\Program Files\Common …

Member Avatar for jholland1964
0
113
Member Avatar for pinsickle

Hello, To start thanks in advance for any help. Now I will note this question is about homework so I just want help to get started not everything laid out for me. Ok here is the deal. I have a class called StudentArrayV4, it is a dynamic array of pointers. …

Member Avatar for pinsickle
0
157
Member Avatar for laailalalaa

hi, i want to open an utf-8 file, read it line by line and add, at the end of each line, a particular-per-line string. how should i do this? thanks

Member Avatar for sknake
0
115
Member Avatar for jrosh

I managed to create a <filename>.bat file using a jar creator . It also creates <filename>.jar file but when i click .bat file it says unsupportedClassVersionError: bad version number in .class file .jar file says could not find the main class... how can I overcome this???

Member Avatar for masijade
0
110
Member Avatar for NinjaLink

Hello, I need help printing my results to an output file with the program that I have below. I am getting an error "too few arguements to function". It has been a couple of years since I did C++ using .txt, so any help is appreciated. Thank you. [B]Goals:[/B] - …

Member Avatar for NinjaLink
0
273
Member Avatar for Alexia Noir

hi there. say i have a text file. in this text file is all the information i need for my output. the problem is, probably because i'm still very new at this, i don't know how to read this particular text file and output it onto the screen. suppose i …

Member Avatar for Alexia Noir
0
146
Member Avatar for robgeek

I am trying to write a program in which a big text file is read and then user searches for a word and replaces it with another word. To implement this I was thinking to store the file read into an array since that would the easiest way to implement …

Member Avatar for VernonDozier
0
168
Member Avatar for Slippy-D

I am creating an automation tool, to stop users messing with files, the thing is, my tool needs to work with an ini file which doesnt yet exist... heres how i create the ini file... String iniPath = @"C:\test.ini"; File.Create(iniPath); that sets me up with my ini file... the thing …

Member Avatar for Slippy-D
0
101
Member Avatar for sakhi kul

Hi, I want to upload file. but when I use<input type="file" runat="server"> & with one button. when I click on button then my page cannot be found. such type of error occured. means when I add that input type file tag that error occured.

Member Avatar for sakhi kul
0
115
Member Avatar for ITech

I have created a windows application using C#. the problem is fairly simple. I doono how to refer to the Application path in c#. In Vb we can use App.path to refer to the Application path My C# code for opening a report is as [code=c#] public partial class frmSpaBill …

Member Avatar for serkan sendur
1
353
Member Avatar for himgar

I had written a program [code] #include <fstream.h> void main() { fstream f; f.open("test.txt",ios::app|ios::in|ios::binary); cout<<f.tellg(); f.close(); } [/code] My file test.txt already contains text : " hello " i.e. 5 characters But when i try this it outputs only 0 but ios::app mode places the pointer at the end of …

Member Avatar for Salem
0
86
Member Avatar for staticvoyager

I'm trying to pull in a file name from another class... I have a three classes... My main class, a class called Transaction, and a class called Account. I have two sequential files. "CHECKING.TXT" or "SAVINGS.TXT" that I have loaded into arrays in my main class. I need to pass …

Member Avatar for staticvoyager
0
139
Member Avatar for jcmeyer

I want to copy a file to the clipboard. So if the user of my program goes into a directory or want to send the file attached in an email, they can just paste the file into the directory or email. I understand how to copy the file to another …

Member Avatar for jcmeyer
0
3K
Member Avatar for Nathan Campos

Hello, I'm trying to download the binarys of the [b]FPC ver. 2.1.2 Win32[/b], because i need to develop a program that i only can compile it in this version of FPC, then if you have the binary of this version of a link to it i will be very happy. …

0
113
Member Avatar for happygeek

It launched in a flurry of controversy over privacy issues, but within weeks of going live the 118800 mobile phone online directory service has been suspended. Although the official reason for the, so far, 3 day unavailability of the website is being given as "undertaking major developments" to the beta …

Member Avatar for Virg_Anderson
0
293
Member Avatar for khess

Most often, when someone talks about a filesystem or file system, they're referring to disk filesystems such as NTFS, FAT, ext2, ext3, ext4, ISO 9660 and many others but can also refer to network file systems such as CIFS (Common Internet File System aka Samba) and NFS. A filesystem is …

Member Avatar for vigneras
0
314
Member Avatar for newsguy

What a difference a year makes. Was it really only in August 2007 that Google added the Sun developed StarOffice suite to the Google Pack software collection? Yes, it was. Back then Google was happy to have a $70 value package available for free to Google Pack downloaders. Things, apparently, …

0
209
Member Avatar for happygeek

It was always going to generate plenty of publicity simply because it was the new Michael Moore documentary movie. It was always going to generate even more publicity because Moore decided to release it for free, on the Internet. The first time, as far as I am aware, that a …

0
228
Member Avatar for GuyClapperton

The fact that the UK's Internet providers are [URL="http://technology.timesonline.co.uk/tol/news/tech_and_web/article4387283.ece"]doing something about illegal downloads of music[/URL] is of course to be welcomed in principle. Whenever the subject comes up there are a handful of objections; civil liberties, the Internet should be free, whatever, the objectors seem to come from everywhere. But …

Member Avatar for tiger86
0
367
Member Avatar for khess

Hans Reiser, creator of the ReiserFS, is found guilty of murdering his ex-wife, Nina. Described as odd, strange, and narcissistic by the prosecuting attorneys and having Asperger's Syndrome by his attorney; the jury decided against him. Unfortunately, the evidence against him was significant and damning. The prosecutors gave Reiser's ongoing …

Member Avatar for Dani
0
151
Member Avatar for newsguy

Microsoft has today announced the availability of Service Pack 1 for the 2007 Office system product range, and you don't have to wait the 3-6 months which Microsoft says it will take to appear in the automatic updates either. In actual fact you can download it right now from [URL="http://office.microsoft.com/en-us/downloads"]OfficeOnline[/URL]. …

0
528
Member Avatar for John A

Microsoft's now planning to make [URL="http://www.informationweek.com/internet/showArticle.jhtml?articleID=196902603"]Windows Vista and Office[/URL] downloadable via their website - a good choice, likely spurred on by the vast number of other software distributable via the internet. It's a good idea, but I think that it's quite probably piracy will become even worse if it's distributed …

Member Avatar for jwenting
0
174
Member Avatar for happygeek

On May 23rd I predicted that Microsoft would start the Windows Vista Customer Preview Program (CPP) within a few weeks, and I have been proven right. Microsoft today announced public availability of Vista Beta 2, the same build (5384) as was made available to developers at WinHEC. If you don't …

Member Avatar for 'Stein
0
455
Member Avatar for Ancient Dragon

This is a simple example of how to delete a line from a text file. In order to do that you have to completely rewrite the file, leaving out the line(s) you want to delete. First open the input file, then open an output file (doesn't matter what filename you …

Member Avatar for majestic0110
0
11K
Member Avatar for Shaffer

Hello, this code snippet is a function used to manage an unlimited amount of hit counters with a text file. [B]It is crucial that each page will only be displayed once.[/B] The text file syntax: [code] page_name.php:0 page_name.php:0 [/code] An example of a text file that was just set-up (not …

0
87
Member Avatar for vegaseat

This is a short code example using the function os.stat() to get some of the basic file information. Things like file size, times the file was created (Windows), last modified, and last accessed. The program uses a dictionary in an interesting way to store and display the information. The times …

0
2K
Member Avatar for KevinADC

The [URL="http://perldoc.perl.org/File/Basename.html"]File::Basename[/URL] module is used to parse file paths into directory, filename and suffix (or file extension). My simple example shows how to get just the file extensions.

0
884
Member Avatar for vegaseat

This snippet takes a look at Python file handling. Different ways to write and read text files, zipped files and memory streams. Investigates how to access only part of a file. Also explores the "read" of a binary image file and performs a hex-dump of the data.

0
573
Member Avatar for vegaseat

I look at BCX-basic as a modernized qbasic. This simple code creates a Windows GUI program that plays a midi instrumental music file. To keep it simple, the file it looks for is "TheRose.mid" file. If you don't have this file, you have the option of editing the code, or …

Member Avatar for billzilla
0
222
Member Avatar for serkan sendur

how do i change fileattributes in compact framework? it does not have getattributes and setattributes methods. Any ideas?

Member Avatar for serkan sendur
0
82
Member Avatar for fazeleh

hello.... im sorry for my bad spelling ... i have a problem in saving the result of a metod in a file ... the result is an arraylist ... i dont know how to save it ! in way I save it ,file shows it "system.collection.arraylist" but it must show …

Member Avatar for sknake
0
126
Member Avatar for shuda009

Hi, I'm trying to find a solution to my code and I have general idea what the problem is but I don't know how to solve it please help me. What the code does: What my code does is it should read a dictionary file called dict.txt and store each …

Member Avatar for VernonDozier
0
378
Member Avatar for dm_team

I have created the WCF service which will convert the Office document into XPS file. I did using Microsoft Interop assembly Microsoft.Office.Interop.Word.dll Microsoft.Office.Interop.Excel.dll I am using silverlight application to show the XPS file. When i run the silverlight application with WCF is in same solution it is working fine. I …

Member Avatar for kvprajapati
0
89
Member Avatar for dasatti

Hi, I need already written code for a simple file and folder explorer in Java similar to Project Explorer in Net Beans IDE. Instead of writing it from scratch I hope I can find which is already written. It will be very good if it allows file/directory add, remove and …

Member Avatar for dasatti
0
3K
Member Avatar for ubi_ct83

Sorry for the messy tittle.i dont know what suit with my prob. i have posted a thread last time about string array and compare them with some data.seems like no solution for that,i want to try this way.i want to use double array. same case, i have a file with …

Member Avatar for Salem
0
160

The End.