6,015 Topics

Member Avatar for
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
236
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
186
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
245
Member Avatar for doha786

i am very new in java. anyone pls tell me step by step that how can i make executable jar file for my ListFile.java file .... I made a directory named "Test" where put ListFile.java & ListFile.class file. then i made a "mainClass.mf" file in same directory where having this …

Member Avatar for BestJewSinceJC
0
101
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
192
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 myselfantara

Hello Everyone, I am a new member in the forum. I had a question regarding a code. The code is not able to open the input file. Any help is appreciated. thanks Here is the code, [ICODE] #include <iostream> #include <fstream> #include <cstring> #include <cstdlib> #include <iomanip> using namespace std; …

Member Avatar for tux4life
1
217
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
99
Member Avatar for dinilkarun

Can anybody please help me with the code to read file names inside a zip file using VB6. I am able to open(not extract) the zip file.

Member Avatar for amccaul1976
0
1K
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
246
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
70
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
74
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
197
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
219
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
135
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
108
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
123
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
271
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
163
Member Avatar for jessicama

This is urgent. I have a complied php file, the file appears to have been run through an intentional obfuscation process with something called ionCube. I need someone to de compile this file to source file ASAP. Please contact me at <SNIPPED> so I can send this file to him

Member Avatar for almostbob
0
72
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
94
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
130
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
105
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
154
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
49
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
141
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
164
Member Avatar for Miyuki Suzuki

Hello again, today is just not my day :( I had a problem with speed this morning and got help that totally solved it, so here goes hoping for some more help. [B]background:[/B] I have an ejb that picks up a file, copies it and the has to process the …

Member Avatar for Miyuki Suzuki
0
147
Member Avatar for jschri4

string rating(bool ozone, bool no2, bool so2) { string result; int count = 0; if(ozone == true) { count++; } if(no2 == true) count++; if(so2 == true) count++; if(count == 3) result = "Gold Star"; if(count == 2) result = "Silver Star"; if(count == 1) result = "Ok"; if(count == …

Member Avatar for Zhujy
0
81
Member Avatar for Miyuki Suzuki

Hello everyone, I am having some difficulty with file handling, I hope someone can help. Here is the background: 1) I have to read a .dat file, file size varies from 692kb to 109.742kb with the following format of data: eg : ID|flag 1|y 2|y 3|y 4|y 4.37777451|y 5.52625317|y 2) …

Member Avatar for Miyuki Suzuki
0
106
Member Avatar for WaelTheNoble

Dear All, I want to open another exe file in my C++ program. Let the exe file be A.exe. So I used shell execute inside my C++ program to open the file but as A.exe writes in a file certain data that I will use in the next step of …

Member Avatar for WaelTheNoble
0
3K
Member Avatar for lilkid

[ATTACH]9572[/ATTACH] Hello basically ive parsed a website's data into an object. I wrote it to file and read it back in to write to a dictionary. but when i read it in it reads it like 3 times. so im a bit confused as to why ad would like to …

Member Avatar for lilkid
0
128
Member Avatar for cpsc1892

I'm studying for one of my exam's and this is my first c++ class and my professor gave one of these questions for our study guide... and I'm having trouble with it. And since our final is open book and open notes he's not giving us the answers, and i've …

Member Avatar for cpsc1892
0
2K
Member Avatar for meistrizy

Thanks in advance for your help. The problem is this: I am supposed to read an array from a file and ask the user to input a name to search for within the file. If the name is there then return the position number in the file, if not output …

Member Avatar for meistrizy
0
140
Member Avatar for littlespy

Hi all, Just registered on the forum. I have a quick (hopefully) question. I'm trying to read from a text file into one single string. I'm having some trouble though and can't quite find my error. I have the following code below right now. The problem is that my function …

Member Avatar for Aia
0
160
Member Avatar for foxypj

Hello I am trying to make a program that converts different units. The conversion factors are stored within a txt file and i need to read them in. i have this code so far; but it doesn't work. using System; using System.IO; namespace Task3 { class TextFileReader { static void …

Member Avatar for foxypj
0
185
Member Avatar for asifjavaid

Hi, I have a file of approximately 4.19GB. I want to get the totall size of file using code in VC++, Here is my code [code] FILE *fptrSampleVideo = fopen(filename,"rb+"); if(fptrSampleVideo) { fseek(fptrSampleVideo,0,SEEK_END); uncompressedVideoSize = ftell(fptrSampleVideo); } [/code] If the file is of small size, ftell() return position correctly and …

Member Avatar for Ancient Dragon
0
328
Member Avatar for DCvonB

Hi, I would appreciate any help with the problem I am having. I am trying to read text from a file (currently just 'yes' or 'no') and print the out the results in this format: 1 yes 2 no 3 no etc. I have been able to write a some …

Member Avatar for Ancient Dragon
0
174
Member Avatar for Icebone1000

The file gets more kB then the original ( 114KB to 914KB) And something weird: when I try open the new file with the notepad, it loads forever and i get a program not responding message when I try to close it, with the original file it loads ok.. By …

Member Avatar for nucleon
0
209
Member Avatar for ask2

Hi I am trying to process a large text file. I would like to include parameters at some places in the file. Run it through python and write out the "processed" file with the values of the parameters in the new file. Example: original file: a =1 b=2 c= param1 …

Member Avatar for ask2
0
188
Member Avatar for sarawilliam

i am able to read the nice.ls FILE. Let me explain u my nice.ls FILE content 1st column is integers dont bother abt them, 2nd column is address, i read it by using isxdigit array[6] and i am able to read the hexadecimal 3rd column is opcode , i am …

Member Avatar for nucleon
0
143
Member Avatar for stevejhon

Hi all, Iam using file upload control in my application where user can upload single as well as multiple files & make sure file is uploaded with unique name. Also once uploaded to be able to view files in a dropdown & have a download button so selecting any file …

Member Avatar for greeny_1984
0
76
Member Avatar for sarawilliam

Hi check my program i have used to read a FILE( nice.ls is shown below the program). I am able to read the FILE nice.ls, but i also have to check whether it starts with interger and next i have to check the hexadecimal if no hexadecimal then it should …

Member Avatar for sarawilliam
0
924
Member Avatar for Sterlingmaxx

Hi there... I'm really hoping that someone here is able to help me out...found this site while searching for possible solutions to my problem and I'm moving to the states in a couple days and would like to get this sorted before I move... ANYWAY... When I try to open …

Member Avatar for crunchie
0
278
Member Avatar for neelima156

Hi There, I have to do this read a list of names from an input file of my own, In main() I declared a Namelist[][] object, read several names from thefile using redirection and then print out the list. I have to add the name to the list only if …

Member Avatar for neelima156
0
131
Member Avatar for bluebird

Hello! I am trying to write a program that test whether a word is present in a file or not using command line argument. Here is my program. It does not work properly. Although the word I entered is present in the file, it has been saying that " the …

Member Avatar for nucleon
0
93
Member Avatar for bluebird

Hello I am writing a file program like that user has to input a string and that string was written to a file. From that file, that string was read to the another file changing lower case letters to upper case letters and upper case letters to lower case letters. …

Member Avatar for nucleon
0
117
Member Avatar for blackcloud72

Please help I am stuck. I am trying to retrieved text from a file named "text.txt" and reversing the contents to another file named "output". Then i have to display the contents of "output" to the console. I am able to display the reversed text to console but only from …

Member Avatar for jasimp
0
114
Member Avatar for brakeb

Greetings, I have reached a point where I need some help. I have a tivo at home, and I'm trying to script something that will allow me to 1.) pull the XML off of the tivo, and save the file, 2.) Take the text in the XML, and pull out …

Member Avatar for brakeb
0
383
Member Avatar for caps_lock

[CODE] String deleteString = e.getPath(); File deleteListFile = new File(deleteString); deleteListFile.delete(); [/CODE] so to talk you through it, the File object is obtained by the results by system.out.println (not shown here) ...and then I am getting the path of the file by using getpath() then i want that file path …

Member Avatar for caps_lock
0
152

The End.