4,718 Topics

Member Avatar for
Member Avatar for Joe Hart

Hi This is my second post. I am new to python. I hope I have posted my code correctly. I am trying to have Python rewrite the compare.asc file. This file is used with another program called MUST. This is a transmission line program. This program is suppose to compare …

Member Avatar for jlm699
0
458
Member Avatar for tfurrows

I am modifying the WDK "genprint" Print Processor example. Everything is working great, and I can compile fine, but I am running into a snag with one thing. Part of my modification knowingly triggers a print error, and Windows re-submits the print job automatically in the spool. I need to …

Member Avatar for jephthah
0
131
Member Avatar for mem81

Hi guys, I have spent a morning working on this. Not sure if I will ever get it right. What I want to do is read a text file and based on list of constant values split the original file in two smaleer files. One of them to contain only …

Member Avatar for Ramy Mahrous
0
85
Member Avatar for valtikz

This is my next question: how to get a document from root? because I have this code: [code] myfile.open ("/home/ws14/Desktop/test.txt"); [/code] But I need to change the path home/ws14 if I change user. Thanks!

Member Avatar for valtikz
0
156
Member Avatar for ejiroy

I am making a program that reads from a .txt file and outputs the names that are in my .txt file into an output file that the user specifies. My program compiles but then I get an error that says "int main(): Assertion `fin.is_open()' failed. Aborted" What am I doing …

Member Avatar for siddhant3s
0
200
Member Avatar for Atomika3000

I've got to make a Property To Let program that can allow the user to add, view or delete property details to and from a text file. I have done the add and view part but i am having trouble getting the delete working. I've managed to get it to …

Member Avatar for Atomika3000
0
161
Member Avatar for alexms

hey, im having a problem getting file stored into linkedlists. the program crushes when start reading. [B]these are the structs:[/B] [code=c]typedef struct category { char categoryID[5]; char categoryName[25]; char fareType; char categoryDescription[250]; unsigned numItems; ItemTypePtr headItem; //ptr to item struct CategoryTypePtr nextCategory; } CategoryType; typedef struct item { char itemID[5]; …

Member Avatar for nexocentric
0
2K
Member Avatar for carloscarlos

When I try to print data to a file, I am getting an error dealing with security saying that I don't have permission to write to a file. Can anyone help me out? Here is the code //import packages import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.*; import …

Member Avatar for Frickelmeier
0
120
Member Avatar for tkal

Opening a image file gives an empty file. A .txt file can be opened. Opening the image file gives no view available.

Member Avatar for tkal
0
146
Member Avatar for mem81

Hi guys, I am trying to create an windows application. What I need to do at this stage is I am trying to read a tab delimited file and the that same tab delimited file to go to another text file on my C drive. I have written some code …

Member Avatar for mem81
0
132
Member Avatar for zoner7

So I've got a program that takes an encrypted file and essentially decrypts it. I am now trying to modify this file. During the encrypting process, the words were scrambled by position. The location of each word is marked with a position value. I decrypted the original text, so now …

Member Avatar for nucleon
0
129
Member Avatar for burger87

-------------------------------------------------------------------------------- Hey all. I'm a newbie at C++ and hope that you guys can guide me along. I recently got assigned a project and is needed to code it in C++, which I have almost zero experience with, so bear with me. =) I need to delete 3 log files …

Member Avatar for burger87
0
148
Member Avatar for Dewey1040

Write a program to compare two text files. The names of the files are to be supplied as command line arguments. The program should write a message to the screen indicating that the files are exactly the same or that there are differences. If the files differ, the program should …

Member Avatar for Ancient Dragon
0
99
Member Avatar for mickensinc

I have a windows server 2003 enterprise and want to know how can i share files over the net with or with out sharepoint and can let my family access them sharing files to do family reunion picture disc can anyone help. I seen sharepoint and thought that would be …

Member Avatar for smowaisqadri
0
124
Member Avatar for rstewar

I am trying to read a data file with this format: 2 2.0 5.8 4 -3.8 1.4 2.0 5.8 3 1.0 2.0 3.0 5 2.2 3.4 4.5 -1.0 2.0 The first number is the number elements and the numbers under are the elements. I would like to read the first …

Member Avatar for Ancient Dragon
1
3K
Member Avatar for tasosa

Hi all; I have problem in C. the problem is ,Here is my code [code=syntax] #include <string.h> #include <stdlib.h> #include <stdio.h> /* uni() function takes an array an thier size.and it produce an array which is include unique element */ int uni(char **arr,int size) { int unique = 0; /* …

Member Avatar for Ancient Dragon
0
194
Member Avatar for pczafer

hi eveyone i need to edit person name or Appointmendescription but not date or time in my program. i can write all the records to the file and can read from the file. and need to edit the file now. can anyone help???? thanks.. [CODE] void writeAppointmenRecords( ) { int …

Member Avatar for Sky Diploma
0
119
Member Avatar for andy999

Hi all, I am trying to get out put in the folder . The folder is created but the text file is not visible.What is wrong with this code. Here goes the code: private void savetxt() { try { //m_stockInfolist is nothing but the listview control name string[] st = …

Member Avatar for NguyenThai
0
154
Member Avatar for amegahed3

Hi All, I'm a C++ beginner, and I face the following problem: There's a .txt file that has some number written successively in the 15th line of the file. Each number (that could be a one or 2 digits number) is separated by a space from the preceding and succeeding …

Member Avatar for amegahed3
0
143
Member Avatar for eschnepper

I have a Windows 2003 server R2 Sp1 and XP SP2 workstations with Office 2000. Occasionally 2 users are able to access the same excel 2000 spreadsheet at the same time without receiving a file open notice until the second user tries to save the file. Then they receive a …

Member Avatar for MidiMagic
0
148
Member Avatar for jakesee

Hi all, I just learned that I can edit the Windows (Vista) host file to assign IPs to domains (host) so that the local system checks the domain against the host file before going through the DNS. My question is: is there a way to redirect an IP instead for …

Member Avatar for airbourne
0
132
Member Avatar for shki_80

HI All, I have ollowing code to delete the image by using File.Delete(fileNamefordel + ".jpg"); function. It works fine on local server but not on uploaded server. string fileNamefordel = Server.MapPath("StdImage") + "\\" + (Session["lCandidateID"]).ToString(); if (File.Exists(fileNamefordel + ".png")) { File.Delete(fileNamefordel + ".png"); } if (File.Exists(fileNamefordel + ".gif")) { File.Delete(fileNamefordel …

Member Avatar for serkan sendur
0
318
Member Avatar for oracle123

Hi all, I am a newbie to C programming world. In my program I want to log information into a log file whose file name should be filename_date_time I am using following code to write information but need help in changing the file name from filename to filename_date_time. [CODE] #include …

Member Avatar for jephthah
0
4K
Member Avatar for trixymix31

Hi, Thank you for helping with this. I basically have to encrypt a file in where the user enters the file name & enters a name for the output file. The encryption is based on the password the user enters. It is a case situation, that being said, if the …

Member Avatar for trixymix31
0
175
Member Avatar for Debangana

Hi I have written a ftp script in perl.It seems to work fine but for some servers it throws an error "Bad file number" while trying to close the connection.What can be the reason for this?How should I resolve it? Following is the ftp section from my code: [code]if (!$ftp->get($ftp_FileList, …

Member Avatar for Debangana
0
242
Member Avatar for tabooxchanz

Hi guys, I need some help with a project...apart of it requires me to add, delete, edit and view records from a file, I have gotten the add to work so far but it will not delete records from the file, I am wondering if it has to do with …

Member Avatar for tabooxchanz
0
201
Member Avatar for kischi

Hi I'm trying to make a file upload function for pictures. So can anyone please help me to make a simple file upload function in c#? I've tried to make one, but it won't seem to work, so I've decided to start over, just with a simple file upload funktion. …

Member Avatar for mail2saion
0
260
Member Avatar for everard

I have a program that writes on a text file. I'm using CStdioFile to write on a text file. The problem is, once the writing size exceeds 190kb, it stops from writing and causes the program to not to respond. I tried threading in my application and the "not responding" …

Member Avatar for Clockowl
0
114
Member Avatar for tasosa

Hi all; i have some problem with my code.. I want to read txt file which include : rectangle 0 0 1 1 orange rectangle 0 1 1 1 green rectangle 0 2 1 1 white rectangle 0 3 1 1 orange rectangle 0 4 1 1 white rectangle 0 …

Member Avatar for jephthah
0
199
Member Avatar for mathueie

Hi I am using eclipse.I got error.I am using g++ complier. *.o : file not recognized: File format not recognized collect2: ld returned 1 exit status Please any one help me..[B][/B]

Member Avatar for tux4life
0
5K
Member Avatar for llemes4011

I don't know where this question came from, but... Is there a way to start at one directory, say... C:\ . and I wanted to go into that folder, and printout a list of the folders/files in that directory, and then do the same for the rest of the folders …

Member Avatar for llemes4011
0
119
Member Avatar for SAZAR

When your system crashes and you manage to rescue files from your hard-drive they are usually automatically named FILE####.chk and you don't know what file is picture, what is program, what is video etc. I only used ACDSee (older version) because it recognizes media files automatically no matter wrong extension, …

Member Avatar for mjdodd
0
109
Member Avatar for billylondon

I am using a compaq laptop, with multiple OS-- win xp pro and ubuntu. My laptop has recently been sabotaged. And now when I boot it and choose win xp OS, this following error message come up: "Windows could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM …

Member Avatar for hungry_for_info
0
265
Member Avatar for francisabey

here I’m going to show you a new way to hide files that is very counter-intuitive and therefore pretty safe! Using a simple trick in Windows, you can actually hide a file inside of the JPG picture file! You can actually hide any type of file inside of an image …

0
78
Member Avatar for aashishn86

i have a file uploaded to my server the path is shown as E:\abc\def\upload\contents.doc to download it the path should be [url]http://3.212/232/abc/def/upload/contents.doc[/url] how do i go about it ? i am saving the file by using[code] o.FileFullPath = Server.MapPath(".") & "\upload\" & sFile [/code] from a script i downloaded

Member Avatar for punitdam
0
84
Member Avatar for bipinbaglung

i have ubuntu 8.10 . how can share any folder from a drive such that every person in lan network computer can see that. (in xp we can just share in one right click) but how can we share in ubuntu. please would you guide me from begining.

Member Avatar for bipinbaglung
0
228
Member Avatar for Helgso

This program is "C:\test\program.exe": [code]#include <iostream> #include <fstream> using namespace std; int main() { int choice; cout<<" Which name to embrace?\n\n"; cout<<" - 1. Fight Club\n"; cout<<" - 2. Shawshank Redemption\n"; cout<<" - 3. Italian Job\n"; cin>> choice; }[/code] There's also a .txt file there named file.txt, "C:\test\file.txt\". Inside this …

Member Avatar for tux4life
0
234
Member Avatar for foxypj

hiya. I'm trying to read in a text file, then split each line and output it to a listbox. However its not that easy. every 7 lines is about one subject so i need the listbox to write the data out like this. line 1, line 2, line 3, line …

Member Avatar for Antenka
0
152
Member Avatar for metal_butterfly

I have a program which will write informations like gid,gname,resname,restype,etc... in a file.I wrote a function to get the starting and ending position of a particular group.Stating of a particular group (say group 12)is denoted in a file by #gid12 and the end of the group is denoted by @gid12.I …

Member Avatar for metal_butterfly
0
118
Member Avatar for metal_butterfly

I have a program which will write informations like gid,gname,resname,restype,etc... in a file.I wrote a function to get the starting and ending position of a particular group.Stating of a particular group (say group 12)is denoted in a file by #gid12 and the end of the group is denoted by @gid12.I …

Member Avatar for jephthah
0
136
Member Avatar for Nikhar

Ok...I'll try and explain this in as clearly as possible. When I click on my computers, a new window opens up. Now when I click on any of the local drives:- C,D,E or F......instead of the drive a search page is opened. I think I know the reason. In file …

Member Avatar for Nikhar
0
126
Member Avatar for amegahed3

Hello all, I'm a beginner in C, and I face the following problem. I have multiple data files, where in each file, there are 3 lines that are the same for each file, and then the fourth line in each file have the work "result" and then a value. What …

Member Avatar for jephthah
0
284
Member Avatar for mrcniceguy

have a script which i found online,through google for uploading and resizing photos when they are uploaded. It works well,the only problem is that there are some images when i upload them they are not detected as a file,but others are uploaded well. for example image of this properties is …

Member Avatar for mrcniceguy
0
172
Member Avatar for jhonnyboy

Hello everyone. I am making a clock in - out program and have a more complex issue on hand. My program asks the user for their name then sends them to the clock in/out form. In the form they press a button which then stores the TIMEOFDAY into a .txt …

0
99
Member Avatar for man4ish

I have one file with the following tab separated records with four columns.Now I am trying to convert the file into fixed length binary file. How it is possible. in C++. rs149915 29103059 A/G + rs149932 29116347 C/G - rs149933 29123223 C/G - rs149934 29084753 C/T - rs150082 29117038 A/C …

Member Avatar for Danny_501
0
150
Member Avatar for agunning

Heya im having a little trouble getting parts of the project to compile; [code=syntax] fscanf(fi, %f, &Max); [/code] this is continualy displaying the error message "syntax error before '%' token " i am compiling on Dev- C its probably simple but help is much appreciated thanks here is the program …

Member Avatar for BunnysMom
0
120
Member Avatar for acadata

Here is the situation: Our CentOS 5.2 server acts as a file server for Samba environment. We have multiple shares, each share has a group associated with it. Each group has multiple users associated with it. Some users are members of more than one group. For this example we would …

Member Avatar for DimaYasny
0
169
Member Avatar for sanam

Hi I upload powerpoint file using this code: [CODE] if (File1.PostedFile !=null) //Checking for valid file { // Since the PostedFile.FileNameFileName gives the entire path we use Substring function to rip of the filename alone. string StrFileName = File1.PostedFile.FileName.Substring(File1.PostedFile.FileName.LastIndexOf("\\") + 1) ; string StrFileType = File1.PostedFile.ContentType ; int IntFileSize =File1.PostedFile.ContentLength; …

0
63
Member Avatar for shimama

Trying to read a file from the user that contains numbers which i use to calculate avgs, range, number of #'s and so on. I can't get it to work tho. Any critiques and help would be much appreciated. Thanks much double grade; //variable for entered grades double sum = …

Member Avatar for BestJewSinceJC
0
154
Member Avatar for lilkid

[ATTACH]9597[/ATTACH] ok i want to read this file into a dictionary and this is the output d={"flight":T34712, From:ABERDEEN, scheduled 0800, remark landed} etc flight is the key do i have to parse the text file i know i cant put it straight into the dictionary as i get this output …

Member Avatar for lilkid
0
184

The End.