51 Topics

Member Avatar for
Member Avatar for Niloofar24

Hi. I'm creating a web crawler, I want to send the output into a txt file, how can I do it? And I also want to give a path to the script to set the directory. How can I do it now?

Member Avatar for Gribouillis
0
367
Member Avatar for Magic8Computing

Hi, I have writen web sites before but have been asked to create a VB program, but dont know where to start so hoping someone can help me. I need to create a program that sits waiting for data from the serial port which is attached to a set of …

Member Avatar for Magic8Computing
0
3K
Member Avatar for dumicom

Hi, is there a simple way to convert the xls file to txt file to fit my program's code. import matplotlib.pyplot as plt x = [] y = [] t = [] fig = plt.figure() rect = fig.patch rect.set_facecolor('#31312e') **readFile = open('data.xls', 'r') sepFile = readFile.read().split('\n') readFile.close()** for idx, plotPair …

Member Avatar for Gribouillis
0
2K
Member Avatar for dumicom

Hi Guys, I'm Using Python 2.7.3 This is my txt file: TimeStamp,Irradiance 21/7/2014 0:00,0.66 21/7/2014 0:00,0.71 21/7/2014 0:00,0.65 21/7/2014 0:00,0.67 21/7/2014 0:01,0.58 21/7/2014 0:01,0.54 21/7/2014 0:01,0.63 21/7/2014 0:01,0.65 21/7/2014 0:02,0.64 21/7/2014 0:02,0.63 21/7/2014 0:02,0.63 21/7/2014 0:02,0.64 . . . . 22/7/2014 23:57,0.53 22/7/2014 23:58,0.69 22/7/2014 23:58,0.61 22/7/2014 23:58,0.65 22/7/2014 23:58,0.59 …

Member Avatar for Gribouillis
0
2K
Member Avatar for dumicom

hi guys below is my attempted code, how can i plot date and time(x-axis) versus a value (y-axis) import matplotlib.pyplot as plt from datetime import time, datetime x = [] y = [] t = [] fig = plt.figure() rect = fig.patch rect.set_facecolor('#31312e') readFile = open('data.txt', 'r') sepFile = readFile.read().split('\n') …

Member Avatar for dumicom
0
5K
Member Avatar for Big-D2xL

I'm trying to create a .txt reader and inserting the read data to the cleansheets software we are editing in class but instead of putting the correct data it does nothing. I made some prints and this is what I obtain: D:\Documentos\Desktop\ImportTest.txt cacacaca ----- [[Ljava.lang.String;@73a175] cacacaca ----- [[Ljava.lang.String;@73a175, [Ljava.lang.String;@364cf2] cacacaca …

Member Avatar for Big-D2xL
0
256
Member Avatar for raheel88

All, What is the most efficient way of writing several lines of data to a *.txt file? Currently, I store the required text in memory then write it all to a user-specified text file at the end, similar to the following; Dim text As String = "" text = text …

Member Avatar for dionterry
0
3K
Member Avatar for ankman

Im new to programming python3 and i'm trying to write a password program. i want to compare a word from a .txt file with a input. no matter if i type the password in write or wrong it always comes up 'access denied!' inFile = open('passwordtest.txt', 'r') password = inFile.read() …

Member Avatar for Gribouillis
0
2K
Member Avatar for castajiz_2

I have read pretty much about xml. I know that it is good to save data inside but i just can t get it why wouldn t I save my data into a .txt file once finished with my program tasks. Is it because xml offers a structural and more …

Member Avatar for deceptikon
0
221
Member Avatar for Quazy

Hello, I would appreciate some help to import data from a text file to a datagridview. If anyone could give me a hint to get started... The textfiles have the column name in the "[ ]" I would like to read the data after the [wp], [pos], [rad] blocks, the …

Member Avatar for Quazy
0
331
Member Avatar for JayGeePee

Alright I'll try to be as clear as possible. I'm currently doing tutorials online because I'm learning php. I'm stuck on an issue I'm not really sure of. I'm currently coding on my local machine and think it may have something to do with that, but I'm not sure. Here …

Member Avatar for paulkd
0
197
Member Avatar for siddiquedu

Sir, I have 2 column having so many points. In the 2nd column there r 3 highest peak points like(6,4 and3) bellow 6 5 5 4 4 4 3 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 2 3 4 5 6 …

Member Avatar for siddiquedu
0
279
Member Avatar for siddiquedu

Can you please help !! Here, you see that const int size=25; Actually, How can i use infinite number like (n). I used "n" like bellow int n; const int size = n; however it only takes 8 values. My txt file can contained different value(n) evrytime, so, i dont …

Member Avatar for siddiquedu
0
404
Member Avatar for MODEY

Hi Everyone, have got this application that exports multiple files bit gives them random names, i would like to rename all the files in the folder to the first 3 characers on the firstline then put an underscore and then the first 5 characters on the seconline **example** randomfile_001.txt contain …

0
146
Member Avatar for Aurax

Hi all How i can read txt file and put it into textbox? Please help me. Any help will be appreciated. Thank you

Member Avatar for Aurax
0
339
Member Avatar for mattboy64

#include <stdio.h> #include <string.h> #include <conio.h> #include<stdlib.h> int fstock1, fstock2, fstock3; int opt1, opt2, cCost, length, gTotal; int stock1= 5; int stock2= 10; int stock3= 15; //--------------------------------------------------------------------------------------------- void welcome() { system ("cls"); printf ("\n ||||''|| . ...\n"); printf (" |||| ||| |||''|| '||| |||. .|| ||| .||''||.\n"); printf (" |||| …

Member Avatar for mattboy64
-1
199
Member Avatar for woah123

I'm given a text document with marks and course codes, and I need to create a function where you input the directory of the file, and the course code. Doing so, the code will return the average mark of all the marks in the text with that course code. Any …

Member Avatar for woah123
0
203
Member Avatar for rae08

Does anyone know COBOL and how to retrieve data from a txt file? I have a list of words (1 word per line) and i want to retrieve them one by one randomly using cobol. thanks.

Member Avatar for stercor
0
987
Member Avatar for blue_Student

Hi. Can you help me read a two digit like "12" from an input.txt file, is it advisable to use fscanf or fgets? This is a sample of the txt file : a(1,4,3,12,15) Thanks :)

Member Avatar for blue_Student
0
651
Member Avatar for guilherme.carvalho.9250

Hello everyone, Im a beginner in vb.net and currently Im developing a program where i save date to a txt file like this Reminder#dinner#26-07-2012 19:52:00 and show it in a listbox(all the lines in the txt file). What i want to do is to select a line(item) in the listbox …

Member Avatar for guilherme.carvalho.9250
0
2K
Member Avatar for guilherme.carvalho.9250

Hello to everyone, Im a beginner in vb.net and currently Im developing a "reminder" program, the user inserts a task that he as to do, the date and the time to be remimbered! Im saving the task in a txt file like this, "Make dinner,Reminder,24-07-2012 18:31:00", but line by line, …

Member Avatar for guilherme.carvalho.9250
0
2K
Member Avatar for Khav

Hello Guys , I want to create a script that convert a text file or Nfo file to an image(format is .PNG). What it does is simply load the txt and output it as an image Here is my code: <?php if(isset($_FILES['image'])){ $errors = array(); $allowed_ext = array('txt'); $file_name = …

Member Avatar for Khav
0
309
Member Avatar for persianprez

So I have a text file that has 4 items in each line. I would like to store these into an array. So this is an example of how they are stored: imgur.com | link.com | 60 | 468 Thanks in advance

Member Avatar for madCoder
0
119
Member Avatar for Zemorg

Hey guys, i'm Working On A Project That Gets All Employees And Their Data From the User Then Saves Them in A Txt File ( Fstream ) Anyway, i figured out how to Do That But What im at stuck at now is how to search through the txt file …

Member Avatar for Clinton Portis
0
1K
Member Avatar for iwanna mix-mix

it gets compiled but it crushes: "programm has stopped working" Please help me!!! this is the programm: #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { FILE *fp; int i=0, n; char allwords[100][40]; fp=fopen("fraoules.txt","r"); if ( (fp=fopen("fraoules.txt","r") )==NULL ){ printf("To arxeio den mporese na anoixtei\n"); } while(strcmp( allwords[i],"telos")!=0){ fscanf(fp, …

Member Avatar for TrustyTony
0
190
Member Avatar for chrlop

Hi I was ask to do a code in c wich read the contenent inside a txt file and display it then after display it they wan't me to tokenize those command and interpretate them in c. I have no experience in c if someone can show me how to …

Member Avatar for chrlop
0
884
Member Avatar for NavVet

OK, I'm new to VB.Net so forgive me if this was covered else where and my search foo was week. I am trying to read data from a text file which is updated regularly by another program. I only want to read the new data which will then be passed …

Member Avatar for Mitja Bonca
0
256
Member Avatar for reynaud0000

Hi this my first post here XD Its like this i have the code writen but it gives me this error Segmentation fault (core dumped) Can anyone tell me why? [code] MAX_BUFFER equ 10240 ; Constante que sera' usada como tamanho maximo de cada linha lida do teclado (10kb) FICH_ABERTURA …

Member Avatar for Ancient Dragon
0
285
Member Avatar for noorf

Hi everyone :) This is one of my first programs using C, so I am facing some issues. our professer asked us to develop a TCP socket (client/server) where the client sends lets say an ID,Name or Major and the server searches into a txt file and returns the line(s) …

Member Avatar for Trentacle
0
259
Member Avatar for muse_squall08

[CODE]#include <iostream> //standard input and output #include <fstream> //file input and output #include <string> //for strings #include <exception> //catches exceptions #include <sstream> //stringstream comes from here #include <algorithm> #include <stack> #include <queue> using namespace std; bool writeFile(const string &data); //writes strings to file bool readFile(); //read file bool palin(const string …

Member Avatar for WaltP
0
2K

The End.