6,015 Topics

Member Avatar for
Member Avatar for AdRock

I'm trying to get each line of text of a file split into words and then put into an array I found an exmaple oc cpluscplus.com and their example works but when i try to edit to make changes to read the line of text from a file i get …

Member Avatar for Murtan
0
2K
Member Avatar for Nicklorion

Hi peeps i've got an problem with space and tabs in a text file. i've build an app that reads a file and creates an array out of every line. this works just fine but then I noticed that the array is cut of after every space and/or tabular. it …

Member Avatar for Nicklorion
0
143
Member Avatar for orwell84

I'm getting into bash shell scripting with Ubuntu 8.10, and the tutorial I'm using is telling me to open the file .bash_profile which is allegedly in the home directory. However, I cannot find this file, except in /usr/share/doc/adduser/examples/adduser.local.config.examples/skel and it's called "dot.bash_profile". Plus, the whole thing is just comments. The …

Member Avatar for Aia
0
207
Member Avatar for codedhands

Hello.Please i have a problem with my code.I am trying to edit a file.The problem occurs when i use the seek function.for example,i have a file outlined like this: [CODE] myfile.txt <Name>Ben</Name> <Age>32</Age> <Sex>Male</Sex> <Country>Mars City</Country> [/CODE] Now,when i try to edit the Age,i use the code: [CODE=python] f=open('myfile.txt','a') f.seek(17,0) …

Member Avatar for lllllIllIlllI
0
100
Member Avatar for imad442

how to delete the last line of the text file using c#. i applicaiton create a text file ..with 2 empty lines at the end of the File now i just require a method which open the text file and delete the last 2 lines of the text File ..the …

Member Avatar for reach_yousuf
0
430
Member Avatar for smartness

How to include something that is a directory before the file like: public_html/includes/sources/yt.php the file yt.php must include a file which is in: public_html/includes/fetch.php what will it be like? [ICODE]include_once(../file.php)[/ICODE] or?:'(

Member Avatar for diafol
0
146
Member Avatar for majesticmanish

Hi all, I have little problem when reading a file char by char and when i tried to make a check at the end of file. I am making a check through '\n' but its not working. Please have a look in the following Program and let me know yours …

Member Avatar for majesticmanish
0
170
Member Avatar for green_lakers

<code> Hi Guys, I am new in perl. I have this file:- 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 BCDE MS08-001 Works Suite 2005 (KB943973) 2009-01-09 09:29:19 FFFF MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-002 Works Suite …

Member Avatar for green_lakers
0
103
Member Avatar for Tavicz

Wel, I have discovered, how to copy one text file to another,yet. (See code bellow). However, I really need to Cap every word in the source text file and copy the text that way to the second file. But I'm desperate. I tried few ways to make it (via Character.toUpperCase()) …

Member Avatar for Tavicz
0
142
Member Avatar for 1bennyd

Hi guys, I have written some C++ code to do three things: 1. Read data from a delimited file (user specifies type of delimiter used), and return data as a "2D array". 2. Print 2D array to console. 3. Write the 2D array to a tab delimited text file. I …

Member Avatar for d0pedup
0
153
Member Avatar for shazzy99

I'm using the writeAlltext method to save a text file with the contents saved in string variable namely textFile1. File.WriteAllText(saveFileDialog1.FileName, textFile1); However for each blank line i'm getting two boxes in the output text file. I need to keep the formatting as it is while saving a file. the blank …

Member Avatar for Ramy Mahrous
0
191
Member Avatar for badbloodyeyez

Hi all, I would liek to know if its possible to read a text file in assembly I am currently using 8051 microcontroller and sending the text file from the PC to the microcontroller via the USB. Is there any way to read the content of the text file or …

Member Avatar for Colin Mac
0
87
Member Avatar for caps_lock

Hello My recursive file scan is not doing what I want it to do. I want it to be able to go through all roots (drives)... With no user intervention, so without including "C:\\" or "." as a string in the source, or without a TextIO.java class. [ICODE]import java.io.*; import …

Member Avatar for caps_lock
0
188
Member Avatar for mrjoli021

I want to incorporate a file browser into my windows app so users can select which file to copy. I am running vs2008.

Member Avatar for mmaster
0
162
Member Avatar for No Pain No Gain

Currently my users download a database outside my app then from within it they can add the database to their main database. Now I want to have the app download and add the database all at once. If I change the file extension to .txt the code below downloads the …

Member Avatar for No Pain No Gain
0
282
Member Avatar for Toulinwoek

I have a help file (.chm), and I want to be able to perform a seemingly simple operation of having that file open when the user selects "Contents" from the "Help" menu. I have added the proper object to the project and set it's namespace property to the location of …

Member Avatar for pankajmk
0
285
Member Avatar for shers

Hi all, I'm creating a progam in C# that reads a file location at start up and displays the parent folders in a combo box. This file location may change in future. So I intend to keep this in an xml file and allow the user to change it when …

Member Avatar for LizR
0
4K
Member Avatar for anarki2k3

Ok, I've got a spreadsheet of ~3000 lines, I have a selection of images that need matching up to these lines. There is a matching field in the spreadsheet to the file name of the images but I can't find anyway of easily extracting the images I need. The trouble …

0
51
Member Avatar for guest7

Hi, I have a file output.txt as follows : c FILE c c c p val 25 36 8 1 0 -1 -8 0 -9 -7 0 -9 -2 0 7 2 9 0 -10 6 0 -10 8 0 -6 -8 10 0 -11 -9 0 -11 -3 0 …

Member Avatar for Comatose
0
526
Member Avatar for Frank Wallis

Dear IT Pro and Experts, I have a computer running WinXP with SP2, it has 128MB of RAM, and 477Mhz Processor. I was using internet on this computer suddenly the computer was little slow and when I checked the paging file usage in "processes" by going to windows task manager,it …

Member Avatar for caperjack
0
131
Member Avatar for Hannahlv

Hi everyone, I'm doing an hotel application which has an introduction form. In that form I put a RichTextBox control and a menu toolstrip. I want to load a rtf file to richtextbox when the toolstrip is clicked (The file is a default file chosen by my choice). I can …

Member Avatar for BlackSun
0
127
Member Avatar for Cellu

Hi, This must be a rather dumb question, but I'll ask it anyway. Me and my friend are making a simple news script for our website, and thus we are not going to use mysql. The idea was to use mod_rewrite for SEO friendly URLs e.g /news/2008/12/25/this-is-the-subject/ (== news.php?y=2008&m=12&d=25&s=this-is-the-subject ) …

Member Avatar for almostbob
0
266
Member Avatar for atish00

I have posted the update member function as many the 12th students can copy my project. I want to open the binary file compare the roll numbers with the inputted roll if it matches the object of the file should be overwritten with a new object i.e *X. [code] void …

Member Avatar for atish00
0
122
Member Avatar for monere

Hello, I need to read mp4 video files, perform basic (simple file cut) on-line editing functions and write edited files to disk. Question: Is there a means to programmatically access the video file playing time file information without having to play the file on media video player such as Quick …

Member Avatar for skatamatic
0
103
Member Avatar for rajeesh_rsn

Hi I am new to php, I had a form in my page to upload image and some data. And that image filed is not mandatory. I had done that script well and working well. But the problem is it always need a image ( that is not mandatory in …

Member Avatar for wilch
0
225
Member Avatar for comsec

I have a mechanism to upload a file to the remote disk from the JSP page. But now the issue is that User is not supposed to access the remote disk as it is supposed to be a restricted access remote disk. Now I was wondering on how to upload …

Member Avatar for stephen84s
0
90
Member Avatar for axn

python script reading config file and then zipping files after X days from directories. dir contains dynamic files. i have specified the extension and the "startswith" in the config. problem i have is it [B]zips up everything[/B]. (if i can get this work will add a delete too). i also …

Member Avatar for woooee
0
207
Member Avatar for ayi_102

this is asp using c# [ICODE] string filename = "tracking result.csv"; string sExportFile = Server.MapPath(filename); [/ICODE] it just the piece of the code the code save the file to the server Q = How can i save the file to the C drive? eg like c:\\testfolder\tracking result.csv

Member Avatar for ayi_102
0
168
Member Avatar for JeanG

Hi, I recently set up a home network with a Linksys WRT54G wireless router. The Office desktop and the notebook pC both have windows XP professional. Our office desktop computer is attached to the router, and 1 notebook PC and another desktop (Dining Room) are also attached to the network. …

Member Avatar for MatEpp
0
95
Member Avatar for Phil++

Hey, I am creating a project that writes to a file. The problem is that I don't want it to write to a file on my computer but to a file on my server. I am using this [CODE]ofstream myfile ("www.myurl.com/test.txt");[/CODE] What I want to do is open that file …

Member Avatar for Phil++
0
61
Member Avatar for nitu_thakkar

this coding is about copy one existing file into other file but it can't do so throught the command line arg. what is the solution....? [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> void main(char *argv[]) { FILE *fp1,*fp2; char c; int i; clrscr(); fp1=fopen(argv[1],"r"); rewind(fp1); fp2=fopen(argv[2],"w"); if(fp1==NULL) { printf("Source File is Not Exist"); …

Member Avatar for Ancient Dragon
-1
136
Member Avatar for kiransarv

Hi all, I have a file which have ip's of three servers say servers.txt. I am opening the file for every request. Instead I want to load the file for the first request and from the next time onwards. I have to avoid file I/O. How can I achieve this …

Member Avatar for mn_kthompson
0
121
Member Avatar for RenFromPenn

Hi, Okay, so what I am actually trying to do is open a file, convert any lowercase text to uppercase, and then print it on screen. I thought it best to first just begin by trying to open a file and display the contents on screen. I figured that once …

Member Avatar for Ancient Dragon
0
887
Member Avatar for RhinomanUK

Hi I'm having a problem reading in a file. I am using BCB6 Personal Edition under Win XP. The file is always read correctly up to the 4413th byte then the data is corrupted. I have modified the code from a fixed array size to use a vector so I …

Member Avatar for RhinomanUK
0
180
Member Avatar for nymph

hi all! i want to delete a file/directory in java, the delete().depends on other programs which uses file name as string.but for me to delete the file,the name must be a File. that is what i have realized as when i use string it does not recognized some methods,like List …

Member Avatar for stultuske
0
90
Member Avatar for beast0000

Hello guys, I am new in this forum and i hope im gonna get some fast help. I have this problem where i should input numbers from a .doc file, and the program should output how many times the number of occurences of each number. ie: the numbers in the …

Member Avatar for MosaicFuneral
0
80
Member Avatar for Homee2010

Help! I bought 2 laptops for my kids this Christmas. Since they have both been using my PC for 2 years, there are many mp3, word, pps, and excel files on my computer. Is there any way to transfer these files to the respective laptops? My PC will be on …

Member Avatar for Stylish
0
72
Member Avatar for kischi

Hi I am trying to upload an excel file to the server. But it won't work, every time I am trying to upload an xls file and press the button. it writes: No file was uploaded. as if i had no file. you are welcome to try on: [url]http://radio.web.surftown.dk/admin/indset_program.aspx[/url] the …

Member Avatar for kischi
0
110
Member Avatar for agentkirb

I'm making a program, and I'm at the beginning where I'm just reading the information in. The goal of this short bit of code is to read in a date (when I finish the program it should be able to read in multiple dates from a file, but I'm keeping …

Member Avatar for agentkirb
0
128
Member Avatar for nrupparikh
Member Avatar for Liinker

I'm mapping a file view to share an array of 200 std::strings between two processes but I've been getting an access violation error when I write a string longer than 15 characters into the array. Does anyone know how I might increase the size of each array element so it …

Member Avatar for Liinker
0
875
Member Avatar for Paryushan

Hi, I am trying to find and replace a particular string in a file and save that file. Here is what I did, where I am writing the output after replacement into new file. I was trying to avoid to open the file for writing and try to use just …

Member Avatar for Paryushan
0
80
Member Avatar for Excess3

Hello ,, i need to write to opened file in w+ mode.. now the problem is that first off all i need to check first string in each line if he the same to value i want to enter , dont enter and print error : in another words i …

Member Avatar for Excess3
0
123
Member Avatar for kischi

Hi I am trying to upload an excel file to the server. But it won't work, every time I am trying to upload an xls file and press the button. it writes: No file was uploaded. as if i had no file. you are welcome to try on: http://radio.web.surftown.dk/admin/indset_program.aspx the …

Member Avatar for kischi
0
95
Member Avatar for kacete

Hey guys, I'm having another problem (two actually) with a function that reads 5 variables (type [B]int[/B]) stored in an text file, separated by lines ([B]\n[/B]) and then it returns them to use in the main() program. The thing is, I do not know how to return them to the …

Member Avatar for kacete
0
190
Member Avatar for Joaoalex7

Hello I'm having some trouble writing to text and object files in java. Basically i need to delete the contents of the file before i write the new information on it...which i'm not being able to do. well this is what i have in terms of code for the text …

Member Avatar for BestJewSinceJC
0
709
Member Avatar for suley04

here is my code so far: [CODE] #include <stdio.h> #include <string.h> struct sale { int week; int units; int price; char name[30]; }; int main(int argc, char *argv[]) { int week = 0; int units = 0; int price = 0; char name[30]; int count = 13; int i = …

Member Avatar for ajay.krish123
0
728
Member Avatar for chitti1986

Hi I am Raviteja new to web development. I need to upload a file to a server say "abc" and later i have to us the path of the file that is uploaded to a server.I am using VB.I know how to upload the files to a local client folder(say …

Member Avatar for Aneesh_Argent
0
89
Member Avatar for hakimkal

I hope it helps you, It is a sub proceedure with with a file open dialog object called "ofd" and the event object is called "cmdcopy" the text on the cmdcopy object is "Copy". I leave you to fiddle with the snippet. [CODE] Private Sub cmdcopy_Click(ByVal sender As System.Object, ByVal …

Member Avatar for Teme64
0
822
Member Avatar for Icebone1000

I have a file with record times, i need take each time and compare it whit the actual player time, so if the player time is < then the best time:input player time on top, if is >, then compare whit the next time and so... the problem is until …

Member Avatar for Ancient Dragon
0
2K

The End.