7,373 Topics

Member Avatar for
Member Avatar for Tellalca

Hello, I really wonder that is it possible to open any file and play with the data inside it using C/C++ FILE pointer. I'm taking a lecture called Data Management and File Structures and there we are working with text and binary files. So I decided to research and work …

Member Avatar for Ancient Dragon
0
161
Member Avatar for elchalateco

Hi all, How do I change bytes [text stored in those bytes] in a binary file? I have a little function that read bytes 335-343 [For Keyer] and bytes 344-352 [for verifier] and displays it. These bytes store who the keyerID and VerifierID of a data entry file are. From …

Member Avatar for elchalateco
0
240
Member Avatar for knan

I have a file named test.txt I get the file [CODE]file=open("test.txt","r") obj=file.read() file.close() print obj a=a b=b c=c d=e e=d e=f f=e f=g g=h[/CODE] All I want to do with this obj is that, I've to create a regular expression such that, 1.If the left number matches the right number, …

Member Avatar for TrustyTony
0
203
Member Avatar for heidik

Could somebody please tell me how do I write a file in "try catch" block for checking if the file exists, if it is opened, if it is not empty. This is the error message I get when the file not exist or it is empty. [code] terminate called after …

Member Avatar for heidik
0
87
Member Avatar for vt2009

I am trying to use StreamWriter to debug a stock trading application, and my code creates the file but doesnt write anything to it. I know the method is being executed because other stuff is happening but the file remains empty. I think I am missing something when I create …

Member Avatar for Kimpl
0
130
Member Avatar for h0neydip

Hi, I have this function in a class file Fileops.php which is suppose to read from a text file then validate a username and password from that text file then if they match will take me to Links.php when the function is called from index.php, but i am getting these …

Member Avatar for saiprem
0
103
Member Avatar for Bri426

Hello everyone :) My C++ class just started learning strings the other day. We were given a simple program that's due tomorrow, but I'm having a bit of trouble with it. I've emailed my teacher, who says I'm on the right track but need to fix something in my while …

Member Avatar for NathanOliver
0
193
Member Avatar for xcarbonx

I am currently trying to develop an algorithm for the following problem: Read data from a text file such as: the driver returns on his glorious day. He's very happy to be safe and.sound at home, with his wife. With that data, i need to print the length of each …

Member Avatar for xcarbonx
0
116
Member Avatar for avataralien

I got a HTML file. I wish to parse the content I need to a text file. How can I make use of The unix utility application that strips the HTML markup tags from the file’s content leaving just content text? Thanks for the advise! [B][U]Partial HTML file code[/U][/B] [CODE]<thead> …

Member Avatar for shibblez
0
569
Member Avatar for SAINTJAB

Guys, I need your help again in C#. I have a folder that contains txt files. I want to be able to convert the text to audio of any file in that folder. I know how to do the convestion but how to automatically convert whenever there is any new …

Member Avatar for Kimpl
0
103
Member Avatar for bsewell

Greetings all, I'm trying to write a CMS for a photo gallery, and I worked out that the best way would be to upload the images to a directory and have a mysql table to store the relative location of the images for later use. I have 1 problem, which …

Member Avatar for pritaeas
0
351
Member Avatar for nammy

I have 2 directories on Mac OS, one is the original directory and the other is an alias of the original directory. I want to list the contents of the aliased directory using shell script. I used the cd command to switch to the aliased directory, but it fails displaying …

Member Avatar for griswolf
0
101
Member Avatar for snivek

I have a function that needs to read a file line by line. It will check that line for a number(a process ID for my process scheduling function). The line is delimited by |. So I read the line in, get the first ID number, and then I want to …

Member Avatar for daviddoria
0
167
Member Avatar for Khodz

So I'm working on a database-type program for the Java course that i'm doing and i seem to have run into a bit of a roadblock. This class compiles and runs alright but where i have a problem with it is when i try to amend the text file using …

Member Avatar for Khodz
0
193
Member Avatar for aadithps

if i have a excel file in c:/temp/f1.xlsx with some data like name age etc.....and if i want to copy some of the data from that file to another file in c://temp1/f2.xslx how do i do it..? also i want to add i more extra data to the copied file …

Member Avatar for Taywin
0
57
Member Avatar for Smudly

When I upload new files, their file name is stored into my database. I have been told that a couple of the file downloads weren't working. Upon further investigation I figured out that the file the person wanted to download was nowhere to be seen in my downloads directory. How …

Member Avatar for P0lT10n
0
75
Member Avatar for jemimaloh

Hey. I've got a programme that processes the files in a given directory. However, it can only run those files if the programme itself is saved in the same directory. The error i am experiencing now is that once my programme runs, it also generates a class file which also …

Member Avatar for jemimaloh
0
119
Member Avatar for davecoventry

What I have is a list of file paths: dir0/file0.txt dir0/dir1/filea.txt dir0/file1.txt dir0/dir1/fileb.txt dir0/dir1/dir1/filec.txt dir0/file2.txt What I'd like to get is something like the following: [code] $paths=Array( file0.txt=>file0.txt, dir1=>Array( filea.txt=>filea.txt, fileb.txt=>fileb.txt, dir1=>Array( filec.txt=>filec.txt ) ), file1.txt=>file1.txt, file2.txt=>file2.txt ); [/code] It strikes me that this must be a fairly common requirement …

Member Avatar for diafol
0
2K
Member Avatar for kimlong008

Who have code read file *.prc help me! I want to write program read file *.prc but I don't know struct file ! only read file *.prc

Member Avatar for kimlong008
0
123
Member Avatar for jogesh_p

hello, i m beginner in php, and i want to download a file, here is my code [code=php] ob_start(); // location with filename $filename = "downloads/code.zip"; if(file_exists($filename)) { header("Content-Disposition : attachment; filename=" . urlencode($filename)); header("Content-Type : application/force-download"); header("Content-Type : application/octet-stream"); header("Content-Type : application/download"); //header("Content-Type : application/zip"); header("Content-Description : File Transfer"); …

Member Avatar for quasipickle
0
171
Member Avatar for TonyDeWittePony

Hello everyone! I have a problem, I need to draw a number of squares along a path. The drawing of the squares I should be okay with, but I was wondering if it's possible to draw them on an invisible path. That way I could calculate how "far" those squares …

Member Avatar for pritaeas
0
107
Member Avatar for Steini_Ey

Hello everybody, I am new here in this community and I hope to learn a lot from you guys and then maybe later become the one to give out advices. I am also new to programing and I recently started learning C++. I am doing a program that is supposed …

Member Avatar for Steini_Ey
0
4K
Member Avatar for vinayak.v

hi... to all the following code is to deploy the reports programatically... i've one problem .. by using the filestream it takes more time to load the reports.. hence burden on server.. is there any option or any solution to make less burden on server.... one more thing the records …

0
64
Member Avatar for Christ90

Hi, i want to try to make a program that reads from file and shows the frequency of the words in that file. I want to sort the frequency of the words acsending. But this i want done after it has been read from the file using a Comparator. Anyone …

Member Avatar for kramerd
0
133
Member Avatar for lewilaloupe

Hi, I'm sure this has been discussed here somewhere, but I can't find exactly what I want... I have a form set up that is sent to different email addresses based on field selections. Sometimes that user will need to attach a file to send too. I have found code …

Member Avatar for lewilaloupe
0
232
Member Avatar for dylank

Hey guys, quick question: I have been experementing with the _popen() function to get the stdout from programs. I'm trying to wrap it in a function for quick reuse, but the prog crashes every time! Here is the function (as well as the quick test main() function): [CODE] // crt_popen.c …

Member Avatar for NicAx64
0
686
Member Avatar for ryan311

i have a problem in sharing a file to other user here is my code i get lag when i press the share submit button. share.php [CODE] <form action="sharefile.php" method="post"> <p><strong>Enter Jum/Email ID:</strong></p> <textarea name="share" style="width: 400px; height: 60px;"></textarea> <p>(Jum ID or Primary Email separated by comma)</p> <input type="submit" name="submit" …

Member Avatar for diafol
0
122
Member Avatar for ajay_p5

Hello Everyone I am having some trouble in parsing a XML document with a perl script. I have a file like the attached file(I have just taken a part of the original file as it is too big to be posted overhere and is hard to analyze manually). Now, what …

Member Avatar for richieking
0
329
Member Avatar for dschuett

Hi everyone, I have been working on an image gallery to allow people to view/upload their photos. I have everything working pretty well except that I want to modify my upload script so that a thumbnail is generated of each picture that is uploaded and stored in a separate directory …

Member Avatar for dschuett
0
188
Member Avatar for dschuett

The following script works GREAT. It uploads an image as well as adds info to mysql about the picture and its location. The problem is that the function "CreateThumbs" actually loops through the entire uploads directory and generates a thumbnail EVERY TIME you upload a picture. I am VERY new …

Member Avatar for dschuett
0
157
Member Avatar for getkiran1

Hi all... How to get the full path of a file which is currently running?? suppose from cmd or directly someone starts an application or any kind of file( text file, word file, mp3 etc) my C# application need to get the path of the opened file... For eg: if …

Member Avatar for Ionesta
0
2K
Member Avatar for Ilyana

[code] #include <cstdlib> #include <iostream> #include <iomanip> #include <fstream> using namespace std; int main() { const int SIZE=81; char input[SIZE]; fstream nameFile; nameFile.open("Bands.txt", ios::in); if (!nameFile) { cout << "Error: Cannot open file." << endl; return 0; } nameFile.getline(input, SIZE); while (!nameFile.eof()) { cout << input << endl; nameFile.getline(input, SIZE); …

Member Avatar for Ilyana
0
102
Member Avatar for Sorcher

[B]Greetings![/B] Anyone here who can correct my code? I'm abit noob to PHP, just started learning. The Ban file function of mine does the echo but it wont stop the file upload. Any idea? have i inplented it wrong or do i miss a line? Love you long time if …

Member Avatar for Sorcher
0
220
Member Avatar for Aamit

Hi, I am transferring file from folder audio to data folder. suppose file abc.mp3 is transferring into audio folder. how to check through program i.e abc.mp3 is full loaded(transfer). then transfer to data folder. like abc.mp3 is 2 mb when start loading into audio folder after some time(sec) audio-> abc.mp3 …

0
67
Member Avatar for Kunal Aggarwal

I am Creating a MFC Application to Read a Text file into a Edit Box. I am implementing the following code [CODE] FILE *m_pFile ; CString m_strLine , m_strText; char line [1000] = "" ; m_pFile = fopen ( "C:\\SELF.txt" , "r" ) ; if ( m_pFile != NULL ) …

Member Avatar for Kunal Aggarwal
0
198
Member Avatar for ryan311

i have a problem in uploading multiple file can anyone help me to solve this problem? here is my index.php [CODE]<!DOCTYPE html> <head> <title>MySQL file upload example</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <form action="add_file2.php" method="post" enctype="multipart/form-data"> <input type="file" name="uploaded_file[0]"><br> <input type="file" name="uploaded_file[1]"><br> <input type="file" name="uploaded_file[2]"><br> <input type="submit" value="Upload file"> …

Member Avatar for ryan311
0
190
Member Avatar for The physicist

Hi all, I'm trying to convert a console application that I wrote in Codeblocks to a Windows Form application written in Visual Studio .NET 2003. I'm having trouble converting a piece of code that reads in a formatted text file line by line (the text in the file is always …

Member Avatar for jonsca
0
192
Member Avatar for Ptap03

Hello, First I would like to say thank you for looking and any help will be greatly appreciated. I am trying to write a code which does the following: 1) Read a file (The file contains list of words) 2) The purpose of the program to ask the user to …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for matkod

hi, I'm creating a game with pygame and i want to create a matrix that will represent the map(where each tile will be). my pygame code is ok, because if i create the map without loading the tilemap (the matrix file) the game runs ok. that would be good but …

Member Avatar for Gribouillis
0
185
Member Avatar for tKc

I need help in reading a text file and by using a switch statement the user can either press 1 to find the average of all the integers in the text file, and by pressing 2 they find only the averages of the real numbers in said file. This is …

Member Avatar for NathanOliver
0
333
Member Avatar for Magic_Turtle

Hi everyone, Im new to coding and php and need some assistance on how to read php information from a file and display it in an html table. Basically the site my teacher has asked me to make is one where i can type in a url, link text into …

Member Avatar for sudeepjd
0
750
Member Avatar for Sorcher

Hello. I am making a register/login function, and i want the user to be able to upload files to his account, and can later view these files. I wonder how i can make the upload script insert data in a mysql table only for the current user uploading, i dont …

Member Avatar for ryan311
0
1K
Member Avatar for yabuki

I created my own header file in C by creating the ff. files: myfile.h, myfile.c and main.c.Afterwards, I compiled myfile.c so I already have the object file for it, but the problem is when I compiled and run main.c this error message appeared: "Undefined symbol _sum". Please help me to …

Member Avatar for xmelx
0
383
Member Avatar for Milton Neal

Hi All This is more a discussion than a problem. :) I’m working on a small project that needs to be done in C++. Part of it requires that I maintain an array of file streams so that I can open serveral files at one time, read, write exchange data …

Member Avatar for Narue
0
245
Member Avatar for frazehmad

Hi, I'm writing a script where user upload any video file and my script converts the video in flv format. Since video files are very heavy in size (I want to give upload limit of 10MB), it takes much time to upload. I observed, when we upload any file to …

Member Avatar for frazehmad
0
3K
Member Avatar for cdes1145

Been scouring the web for ages and can't find a solution. So here I am..... Firstly this is my first venture into web design and hosting. I've got my own site running from just my laptop atm. I'm trying to include a basic hit counter using the following code; <?PHP …

Member Avatar for kylegetson
0
723
Member Avatar for developer_2010

hi First post here, im currently developing a little application which needs to export the data from my datagridview to a csv file. So far I have: Dim gridData(DataGridView1.Rows.Count - 1) As String For Each r As DataGridViewRow In DataGridView1.Rows If r.IsNewRow Then Exit For Dim cellValues(DataGridView1.Rows(r.Index).Cells.Count - 1) As …

Member Avatar for developer_2010
0
369
Member Avatar for tKc

I need help in reading a text file and by using a switch statement the user can either press 1 to find the average of all the integers in the text file, and by pressing 2 they find only the averages of the real numbers (only positive integers) in said …

Member Avatar for Ancient Dragon
0
476
Member Avatar for G_S

Hello, Now I'm making a program for creating language glossaries, but the problem is that windows uses ANSI for encoding text files, and the program that will read these files (which is not mine) only displays words in utf-8 encoding. Since my program is multiplatform, it can also work under …

Member Avatar for woooee
0
7K
Member Avatar for mastercangel

Hello, I have a pretty peculiar problem. The internet connection at my house connects fine on any of our laptops/desktops. But I can't seem to browse online or play games that require authentication or use msn . BUT(once again), I CAN stream online radio from my Itunes, I can download …

Member Avatar for CimmerianX
0
293

The End.