1.4: Getting Text from User: Loading a Text File - Programming with Text

preview_player
Показать описание


Help us caption & translate this video!

Рекомендации по теме
Комментарии
Автор

This guy is a damn beast at programming

suavecito_o
Автор

OMG, I have been searching how to do that for hours, and I understood it pretty easily

regrepsa
Автор

Great video thank you!!! Im thinking of writing a python prgram to write to a text file database and import it to a website!

deadandgone
Автор

Dan, my code works fine and is shown on the console perfectly but the page won't show it(it's blank). Do you know why this is happening? I'm running a node HTTP server as you showed in a previous video. I'd really like to continue watching this playlist but I cannot skip this lesson.

lucase
Автор

Great video. Can you show us how to load text file in JavaScript without using P5 JS framework please? thank you..

khalidhashimeh
Автор

Hello Daniel! First of all thanks to teach to us for free all this stuff! I have a problem I can't figure it out. How can I use the loadTable or loadString function combined with the createFileInput function (or drag and drop technic) to let a user to upload a CSV file? Thanks for any help!

carlino
Автор

I hope our instructor teaches the way you do! 😭

rodinsuniga
Автор

Hi, is there a simple way to append some data to a text file ?

STLightiix
Автор

When replacing the contents of rainbow.txt to just random words, I must first change the filename from rainbow.txt to something else, and then update the filename in the sketch.js file.
It is not enough to just CTRL+A and del the contents of rainbow.txt and add some words to it, CTRL+S, and refresh the webpage. It shows the same contents in the right hand console Array unless I rename the file all around and refresh.
Very strange.

cptstubing
Автор

I didn't understand createFileInput for multiple file access what should i pass in 2nd argument should i pass a callbackfunction for that as well? Shouldn't the documentation also include example code as well googling it I didn't find any results.

parison
Автор

Hey All
Very green with JS, stuck on how to load/read multiple files located within a directory(over 70 of them) was able to load one with the preload function ‘loadStrings’, any assistance would be much appreciated.

AnthonyHarper
Автор

Interesting, my console.log(txt) didn't cause any text in the console. I'm struggling a lot, managed to create a simple program on python to read a random text line from a text file in the same folder, then tried to figure out how to make it happen in javascript to get it on webpage, but can't even get to the point where I can read the text file.

Actually I get error for undefined loadStrings and in general I don't manage to make the text into string format, just a file object.

Yupppi
Автор

hello Danii, listen how can i do all this in Processing 2.2? sorry i have written allot of p2 to just leave it behind and redo everything in p3 and UP and most lib for p2 dont even exist in most higher versions of processing. so if im going to upgrade anything its going to be after i export my sketch to bring into a real IDE like netbeans or something like VS13 BUT you're still my guy for learning all the time!

ClearNinjaFox
Автор

I opened up a text document on notepad and got this </Linearized 1/L 402472/O 131/E 283535/N 2/T 402120/H [ 504 219]>> endobj

147 0 obj <</DecodeParms<</Columns 5/Predictor . how do I undo this? what happened?

almay
Автор

There's probably something wrong with my code, or could it be my Chrome?
Developer Tools console won't show anything. Just that ">"thing. Is there anything else I need to do?

JonMartins
Автор

can you tell how to extract particular word only from text file?

vinitgujarkar
Автор

loasStrings is undefined, where do you get loadStrings from ???

jan-philippmarks
Автор

Hi your video is damn great and helful, but when I try to modify the text file like you did in 02:15 and hit reload the local server, the string didn't change at all. How can I fix it, thanks

DuyNguyen-nfcz
Автор

I tried using live server and chrome or other browser but not work

beaverjoe
Автор

Can you make program get tags from text

abrahemalhofe
visit shbcf.ru