7,373 Topics

Member Avatar for
Member Avatar for vextorspace

when using the data_files option in my setup.py #!/usr/bin/env python import ctypes from OpenGL.platform import win32 from distutils.core import setup import py2exe import sys sys.path.append("dist") setup(options = {"py2exe": {"compressed": 1, "optimize": 2, "includes": ["ctypes","Tkinter","Numeric"], "excludes": ["OpenGL"] }}, zipfile = None, data_files=['msvcr71.dll', glut32.dll'], windows=['myprogram.py'] ) I get an error saying msvcr71.dll …

Member Avatar for vextorspace
0
279
Member Avatar for jingo1126

ive been wondering why wont codes make a file [code] .model small .stack 100h .data buffer db 10,?, 10 dup(' ') .code start: mov ah,1 int 21h cmp al,"1" je input jne finish input: ; will input string i.e "qw.txt" mov ax,seg buffer mov ds,ax mov dx, offset buffer mov …

Member Avatar for NotNull
-1
308
Member Avatar for romes87

Hi, I am trying to do a simple task in Python but I keep getting error. I have a string stored in a variable and a simple GUI with a button (in 1st.py) which will call another function in a separate file (twond.py) which will split that string and store …

Member Avatar for romes87
0
4K
Member Avatar for Originative

Hi, i making an webapp for my uni project that send an POST request using AJAX to the server and server returns an wav file in return... i want to know how do i get the [B]name[/B] of the returned file (using javascript) and also when the file is returned …

Member Avatar for digital-ether
0
76
Member Avatar for gibson.nathan

what i am supposed to do is calculate the chances of wining a bottle top prize if there is one in five winners. i have to do it a difficult way though. i made a random number that signifies a win when it lands on one. i then have to …

Member Avatar for VernonDozier
0
634
Member Avatar for NT.

Hi, I am new to c# and I am trying to read a file which is of format: 1 2 3 3 4 5 6 7 8 1 2 3 4 the problem is I am not able to read file in given format, I am not able to tell …

Member Avatar for Antenka
0
216
Member Avatar for vortex24

Hi all, I have the following code written for work. The point of the program is to take input from the user as to which customer id (phone number) is required. Once the program has this data, it will open a specified folder to search through each line of code …

Member Avatar for Lerner
0
133
Member Avatar for sarithak

Hi frnds... I am struggling from last 10 days..Here i am sending mail with an attachment...I got the attachment ..but, the attachment file data is fully corrupted..this is my code..please solve this one...also here my hosting server doesnt set the SMTP SERVER settings...so, do it plz...... [CODE] $fileatt = "upload/"; …

0
58
Member Avatar for dwdata

I have an upload page which allows a user to SELECT a file from their hard drive, then UPLOAD it to ftp folder, and then store the path of the image to mySQL db. It functions just fine except BUT we want to guard against large file being saved. If …

0
60
Member Avatar for Alex_

Hey guys. I want to read from a file created by me from a specific position. But i don't know how to move the file cursor. [code=ptasm] TITLE ep1 .MODEL SMALL .STACK 10h .DATA text DB '1234567Start:7890.end',13,10 text_length equ $-text dir db 'D:\myfile.dat',00h buff db 17 dup('$') f_handle dw 1 …

Member Avatar for NotNull
-1
1K
Member Avatar for Adamsappleone

Here is something you can do to keep track of the page file usage with System Monitor. Once completed and running you can analyze the data using the prescribed formula (in the article) to increase or decrease your page file. This is not a downloaded program, it is a Page …

0
92
Member Avatar for MJUGRAN

Hi , I am fetching a xml file having n records (destinations one detination may have m routes) as below: <destination> <filename>ABC</filename> <route>ftp://manish_test:manish_pass@10.20.21.123:21/%2F1ST-FTP_Poller/dimensionsABC/</route> <route>ftp://manish_test:manish_pass@10.20.21.123:21/%2F1ST-FTP_Poller/dimensionsBCD/</route> </destination> I have to fetch all these records based on file name (say the above destination for file staring with ABC) and so on... How I …

-1
47
Member Avatar for adi.shoukat

I want to write a Code in C which can create copy any given file (txt, bmp, jpg, pdf etc) what i've written so far is: int main(){ FILE *fp; char ch; FILE *fpW; if((fpW = fopen("file2.bmp","w"))==NULL) { printf("Cannot open Destination file.\n"); exit(1); } if((fp = fopen("file.bmp","r"))==NULL) { printf("Cannot open …

Member Avatar for Dave Sinkula
0
212
Member Avatar for klabak85

Hi all, A question for you. I have these types of files at my work (.sj extension) that I need to work with and I'm wondering if there is a way to read from the file like a text file (the .sj files can be opened / read by notepad). …

Member Avatar for jlm699
0
131
Member Avatar for A_Dubbs

I am having a little trouble grasping this subject in my book. The book gives the program : [CODE]def main(): fname = raw_input("Enter filename: ") infile = open(fname, 'r') data = infile.read() print data main()[/CODE] "as a program that prints the contentsof a file to the screen using the read …

Member Avatar for vegaseat
0
74
Member Avatar for lostmonkey

In my readFile.h file, I define void readFileInformation(string filename) in readFile.cpp file, I define void readFile::readFileInformation(string filename) { ifstream inFile; infile.open(filename.c_str(), ifstream::in); ... } in main.cpp file, I used string filename="mgolfinput.txt" readFile filereader; filereader.readFileInformation(filename.c_str()); but for some reason, I couldn't open file. I did try to change path of .txt …

Member Avatar for Nick Evan
0
85
Member Avatar for mem81

Hi there, I have been struggling with this for quite a while now. I am a novice in .net so no wonder I can figure it out. I have a tab delimited file, where the sequence of lines should be 01UN1........................ 04UN1.......................... 09UN1........................ 01UN2.................... [COLOR="Red"]04UN2.............[/COLOR] 04UN2............... 09UN2................ However sometimes in …

Member Avatar for mem81
0
197
Member Avatar for sourayan2008

Hi, everyone. The situation is, I am converting a tiff image file into byte[], then to stream then saving it as jpeg image format, then display it on browser, so that the jpeg opens in a picture viewer instead of webpage. The code works in IE 6 and firefox, but …

0
39
Member Avatar for turbomen

Dear ALL, Could you tell me how can I write a program that writes to a text file, the 32 people that are in our hotSeat.txt file. Cheers, turbomen (p.s.: 'the question orginally ask me to write a program that writes to a text file, the 32 people that are …

Member Avatar for House_of_Dexter
-1
182
Member Avatar for sonia sardana

I want to develop a login page ,i want that admin username & password to be saved in asp file suppose FrmLoginDetails.asp. Username - sonia Password - citm123 When the user logins,i want that his entered usernme & password to be compared with the that are stored in file FrmLoginDetails.asp.. …

Member Avatar for sedgey
0
94
Member Avatar for mybluehair

So I've got a code in VB that will download a txt file from a website. The problem is I want this file to be downloaded into whatever folder that my program is in. for example, if my program was in C:\random_folder\ then I would want this txt file downloaded …

Member Avatar for AndreRet
0
135
Member Avatar for kristo5747

Hello! I am a newbie who's trying to code in my app a way to send email with file attachments. Here's the code I put together (thanks to Google!). [code=php]<?php $fileatt = "/somedir"; $fileatt_type = "application/zip"; $fileatt_name = "logos.zip"; $email_from = "joe@work_email.com"; $email_subject = "attachment test-subject"; $email_txt = "attachment test-body"; …

Member Avatar for sarithak
0
1K
Member Avatar for VernonDozier

I have a data file that, if I was using C++, I would use the getline function to read its data into the proper variables. However, the getline functions that C++ allows appear to not be available to me in C. I want to be able to specify a stream, …

Member Avatar for VernonDozier
0
243
Member Avatar for sgleason

Hello everyone, I am working on my first week's assignment for Intermediate VB. It has been a couple years since I took my last VB course and I am very lost at this point. I work in Visual Studio everyday, but I mainy do scripting and I don't get to …

Member Avatar for sgleason
0
106
Member Avatar for mrman208

Hello, I am making a program to make a directory in a users Library folder then create a file in it. Whenever I try to make the directory I get an error and if I continue with the program i get a segmentation fault error Here is the source Code …

Member Avatar for codeguru_2009
-1
173
Member Avatar for IdolOfIdle

here is my code. it connects to the server successfully.But connect.getContentLength() returns -1; and downloaded file contains zero bytes. any suggestion will be deeply appreciated. [code] try { // Open connection to URL. HttpURLConnection connection = (HttpURLConnection) url.openConnection(); // Specify what portion of file to download. connection.setRequestProperty("Range", "bytes=" + downloaded …

0
46
Member Avatar for Tommy_101

Hi, I've been trying to create a program that gets wikipedia pages, and lists all the links found in the page source. I've used the urllib.urlopen() method to do this, and unfortunately I've run into a little problem. Instead of getting the actual page like say the main page, or …

Member Avatar for Tommy_101
0
208
Member Avatar for papanyquiL

Hi everyone. Basically what I want to do is search for a specific *.exe file upon initialization of my application. The *.exe file that I want to search for happens to be a .NET debugging tool. When / if my application finds this file, I want it to automatically close …

Member Avatar for papanyquiL
0
206
Member Avatar for alumbagreenz

Hi good day. i am designing a little project for school. This project is to register the MAC address of the laptops of every student in the school. My problem is, when i put in the student's MAC address in the textbox, i would like the little search algorithm i …

Member Avatar for kylegetson
0
108
Member Avatar for edwar

have this code and when i run it, i get the output on the screen, what i would like to do is that i can see the output on the screen and send it to an xls of cvs file. is there anyone who could chage the code and let …

Member Avatar for edwar
0
138
Member Avatar for rajeev_rsd

I'm working on a Project, which includes downloading some files from INTERNET, and the code language is C++, I'm using Codegear C++ Builder 2009, If anyone knows how to download a file using c++ code. please help me, I'll be greatly thankful if you provide a code snippet and then …

Member Avatar for kvprajapati
0
142
Member Avatar for phoobah

I have somewhat a simple scenario, and having been out of PHP for some time, I'm a bit of a brainfart the past two days as I'm researching and re-educating myself with PHP. To put in lamen terms, I have a CSV file on the host server. I have a …

Member Avatar for phoobah
0
2K
Member Avatar for newjavastudent

Hi guys, could anyone tell me why my code cannot input contents into the file, thanks in advance.[code]import java.io.*; import java.util.Scanner; public class FileIO { /** * @param args */ public static void main(String[] args) { // public void writeToFile(){ try { File outFile = new File(args[0] + ".txt"); PrintWriter …

Member Avatar for freelancelote
0
84
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 ihatehippies

My app works fine when its a .py file, however as soon as I compile it with py2exe 0.6.9 I get LookupErrors when using the email MIME library. I tried including the "packages": ["encodings"] option in py2exe but to no avail. I'll post the relevant code and traceback. (note: not …

Member Avatar for ihatehippies
0
135
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 AbiSuren

Hi, The following code works well but the problem is it does noy reads the null values.For Example if csv file contains" Surendar,Java,maths,science,,history,english " Here the program reads the first four strings properly and for fifth string instead of reading null value it reads the next string. Please Correct the …

Member Avatar for roswell67
0
207
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

The End.